/* Variables CSS */

:root {
	--primary-color: #21357D;
	/* Azul Oscuro */
	--secondary-color: #B1388A;
	/* Morado */
	--text-color: #555;
	--highlight-color: #666E84;
}


/* Base styles */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Open Sans', sans-serif;
	color: var(--text-color);
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-header h2 {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.section-header p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto;
}

.btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: var(--primary-color);
	color: #fff;
	border: 2px solid var(--primary-color);
}

.btn-primary:hover {
	background-color: transparent;
	color: var(--primary-color);
}

.btn-secondary {
	background-color: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
	background-color: var(--primary-color);
	color: #fff;
}


/* HEADER */

.header {
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
}

.nav-logo .logo {
	height: 40px;
}

.nav-menu {
	display: flex;
}

.nav-list {
	display: flex;
	list-style: none;
}

.nav-list li a {
	text-decoration: none;
	color: var(--primary-color);
	font-weight: 600;
	padding: 10px 15px;
	transition: all 0.3s ease;
	border-radius: 8px;
	/* Para darle bordes redondeados al fondo */
}


/* Modificación para el efecto hover */

.nav-list li a:hover {
	color: #fff;
	/* Color del texto al pasar el cursor */
	background-color: var(--secondary-color);
	/* Color de fondo */
}

.nav-toggle {
	display: none;
	cursor: pointer;
	background: none;
	border: none;
	width: 30px;
	height: 20px;
	position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	height: 3px;
	background-color: var(--primary-color);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
}

.nav-toggle span::before {
	top: -8px;
}

.nav-toggle span::after {
	top: 8px;
}

.nav-toggle.active span {
	background-color: transparent;
}

.nav-toggle.active span::before {
	transform: rotate(45deg);
	top: 0;
}

.nav-toggle.active span::after {
	transform: rotate(-45deg);
	top: 0;
}


/* HERO SECTION - Farmacias */

.hero-farmacias {
	background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hover-imagen.png') no-repeat center center/cover;
	padding: 10rem 0 6rem 0;
	color: #fff;
}

.hero-container {
	display: flex;
	align-items: center;
	gap: 4rem;
}

.hero-left {
	flex: 1;
}

.hero-tag {
	background-color: var(--secondary-color);
	color: #fff;
	padding: 5px 15px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
}

.hero-left h1 {
	font-family: 'Montserrat', sans-serif;
	font-size: 3.5rem;
	font-weight: 800;
	margin: 1.5rem 0;
	line-height: 1.1;
}

.hero-left .highlight-text {
	color: var(--secondary-color);
}

.hero-left p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.hero-buttons .btn {
	margin-right: 1rem;
}


/* **ESTILOS AGREGADOS Y MEJORADOS PARA LA SECCIÓN `hero-right`** */

.hero-right {
	flex: 1;
	position: relative;
	/* Clave para posicionar la imagen de fondo */
	padding: 2rem;
}

.hero-right::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 15px;
	/* Bordes redondeados para que coincida con el formulario */
	background-image: url('../img/hover-imagen.jpg');
	/* RUTA DE LA IMAGEN DE HOVER */
	background-size: cover;
	background-position: center;
	opacity: 0;
	/* Imagen oculta por defecto */
	transition: opacity 0.5s ease-in-out;
	/* Transición suave de 0.5 segundos */
	z-index: -1;
	/* Manda la imagen detrás del formulario */
}

.hero-right:hover::after {
	opacity: 1;
	/* Al hacer hover, la imagen se vuelve completamente visible */
}


/* Estilos del formulario ajustados para mostrar la imagen de fondo */

.hero-right .form-card {
	background-color: rgba(255, 255, 255, 0.7);
	/* Se reduce la opacidad del fondo blanco */
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	position: relative;
	/* Asegura que el formulario se mantenga sobre la imagen de fondo */
	z-index: 1;
	/* Se mantiene por encima del fondo con z-index: -1 */
	transition: background-color 0.5s ease-in-out;
	/* Animación de opacidad para el formulario */
}

.hero-right:hover .form-card {
	background-color: rgba(255, 255, 255, 0.4);
	/* Opcional: más transparente al hacer hover */
}


/* **FIN DE LOS ESTILOS AGREGADOS Y MEJORADOS** */

.hero-right .form-card h3 {
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 1.5rem;
}

.hero-right .form-group {
	margin-bottom: 1rem;
}

.hero-right input,
.hero-right textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	background-color: #f0f0f0;
	transition: all 0.3s ease;
}

.hero-right input:focus,
.hero-right textarea:focus {
	outline: none;
	border-color: var(--secondary-color);
	background-color: #fff;
}

.hero-right .btn-submit {
	width: 100%;
	background-color: var(--secondary-color);
	color: #fff;
	border: none;
	font-size: 1.1rem;
	font-weight: 700;
}

.hero-right .btn-submit:hover {
	background-color: #9c2e79;
}

.guarantee-badge {
	position: absolute;
	bottom: -1rem;
	right: 2rem;
	width: 120px;
	z-index: 2;
	/* Se mantiene por encima del fondo y el formulario */
}


/* CARACTERÍSTICAS DESTACADAS */

.caracteristicas-section {
	padding: 3rem 0;
	background-color: #f9f9f9;
}

.caracteristicas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.5rem;
	text-align: center;
	align-items: start;
}

.caracteristica-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
}

.caracteristica-item img {
	width: 60px;
	height: 60px;
	margin-bottom: 0.5rem;
}

.caracteristica-item h4 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.25rem;
}

.caracteristica-item p {
	font-size: 0.85rem;
	color: #666;
}


/* MONITOR SECTION */

.monitor-section {
	padding: 6rem 0;
	background: #eef1f8;
}

.monitor-section .section-header {
	margin-bottom: 3rem;
}

.monitor-gallery {
	background-color: #333;
	padding: 2rem;
	border-radius: 15px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

.monitor-gallery-inner {
	display: inline-block;
}

.monitor-gallery img {
	height: 250px;
	width: auto;
	margin-right: 1rem;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	display: inline-block;
}


/* CONTROL SECTION */

.control-section {
	padding: 6rem 0;
	background-color: #1a1e29;
}

.control-section .section-header-dark {
	color: #fff;
	text-align: center;
	margin-bottom: 3rem;
}

.control-section .section-header-dark h2 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

.control-section .section-header-dark p {
	font-size: 1.1rem;
	color: #ccc;
	max-width: 700px;
	margin: 0 auto;
}

.control-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.control-card {
	background-color: #2e3546;
	color: #fff;
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-card .icon-header {
	color: var(--secondary-color);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.control-card h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.control-card p {
	color: #ccc;
	font-size: 0.95rem;
}


/* ABOUT US SECTION */

.about-us-section {
	padding: 6rem 0;
	background-color: #232a39;
	color: #fff;
}

.about-us-section h2 {
	color: #fff;
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 2rem;
}

.about-us-container {
	display: flex;
	gap: 4rem;
}

.about-us-left {
	flex: 1;
}

.about-us-image-container {
	padding-right: 2rem;
}

.about-us-image-container img {
	width: 100%;
	height: auto;
	border-radius: 15px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.about-us-right {
	flex: 1;
}

.about-us-right p {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	color: #ccc;
}

.about-us-right p strong {
	color: var(--secondary-color);
}

.about-us-logos {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-top: 3rem;
}

.about-us-logos img {
	height: 40px;
	width: auto;
}


/* WHY INVENTORY SECTION */

.why-inventory-section {
	padding: 6rem 0;
	background-color: #eef1f8;
}

.inventory-card-container {
	background-color: #fff;
	padding: 4rem 2rem;
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border: 2px solid #ddd;
	max-width: 800px;
	margin: 0 auto;
}

.inventory-card-header {
	text-align: center;
	margin-bottom: 3rem;
}

.inventory-card-header h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 2rem;
	font-weight: 800;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.inventory-card-header p {
	font-size: 1rem;
	color: #666;
}

.inventory-card {
	background-color: #f9f9f9;
	border: 1px solid #eee;
	padding: 2rem;
	border-left: 5px solid var(--secondary-color);
	margin-bottom: 2rem;
	border-radius: 10px;
}

.inventory-card-title {
	color: var(--primary-color);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.inventory-card-title i {
	color: var(--secondary-color);
	margin-right: 10px;
}

.inventory-card ul {
	list-style: none;
}

.inventory-card li {
	margin-bottom: 1rem;
	font-size: 1rem;
	line-height: 1.5;
}

.inventory-card-conclusion {
	text-align: center;
	margin-top: 3rem;
}

.inventory-card-conclusion p {
	font-size: 1.1rem;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.btn-red-outline {
	background-color: transparent;
	color: var(--secondary-color);
	border: 2px solid var(--secondary-color);
	font-weight: 700;
}

.btn-red-outline:hover {
	background-color: var(--secondary-color);
	color: #fff;
}


/* CONTACT FORM DARK */

.contact-form-dark {
	background-color: #232a39;
	padding: 6rem 0;
	text-align: center;
}

.form-card-dark {
	background-color: #2e3546;
	padding: 2.5rem;
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	max-width: 600px;
	margin: 0 auto;
	color: #fff;
}

.form-card-dark h3 {
	color: #fff;
	margin-bottom: 0.5rem;
	font-size: 1.8rem;
}

.form-card-dark p {
	color: #ccc;
	font-size: 1rem;
	margin-bottom: 2rem;
}

.form-card-dark .form-group-dark {
	margin-bottom: 1rem;
}

.form-card-dark input,
.form-card-dark textarea {
	width: 100%;
	padding: 0.85rem;
	border: none;
	border-radius: 8px;
	background-color: #1a1e29;
	color: #fff;
	font-size: 1rem;
	transition: background-color 0.3s ease;
}

.form-card-dark input::placeholder,
.form-card-dark textarea::placeholder {
	color: #888;
}

.form-card-dark input:focus,
.form-card-dark textarea:focus {
	outline: none;
	background-color: #282d3e;
}

.btn.btn-red {
	background-color: #21357D;
	/* Este botón se mantiene rojo según el diseño */
	color: #fff;
	border: none;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	width: 100%;
	text-transform: uppercase;
}

.btn.btn-red:hover {
	background-color: #B1388A;
}


/* FOOTER */

.footer {
	background-color: var(--primary-color);
	color: #fff;
	padding: 4rem 0 2rem 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 2rem;
	border-bottom: 1px solid #444;
	padding-bottom: 2rem;
}

.footer-column .logo {
	height: 40px;
	margin-bottom: 1rem;
}

.footer-column p {
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	color: #ccc;
}

.social-icons a {
	color: #fff;
	font-size: 1.2rem;
	margin-right: 1rem;
	transition: color 0.3s ease;
}

.social-icons a:hover {
	color: var(--secondary-color);
}

.footer-column h3 {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	font-weight: 700;
}

.footer-links {
	list-style: none;
}

.footer-links li a {
	text-decoration: none;
	color: #ccc;
	font-size: 0.9rem;
	display: block;
	margin-bottom: 0.5rem;
	transition: color 0.3s ease;
}

.footer-links li a:hover {
	color: var(--secondary-color);
}

.footer-bottom {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.9rem;
	color: #ccc;
}


/* FLOATING SOCIAL ICONS */

.social-float-group {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
}

.social-float {
	display: block;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--primary-color);
	color: #fff;
	text-align: center;
	line-height: 50px;
	font-size: 1.5rem;
	margin-bottom: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}

.social-float:hover {
	transform: scale(1.1);
}

.social-float.whatsapp {
	background-color: #25d366;
}

.social-float.facebook {
	background-color: #3b5998;
}

.social-float.instagram {
	background-color: #c13584;
}

.social-float.youtube {
	background-color: #ff0000;
}


/* Responsive Design */

@media (max-width: 992px) {
	.nav-list {
		display: none;
		flex-direction: column;
		background-color: #fff;
		position: absolute;
		top: 80px;
		right: 0;
		width: 70%;
		max-width: 300px;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
		transform: translateX(100%);
		transition: transform 0.3s ease;
	}
	.nav-menu.active .nav-list {
		display: flex;
		transform: translateX(0);
	}
	.nav-toggle {
		display: block;
	}
	.hero-container {
		flex-direction: column;
		text-align: center;
	}
	.hero-left,
	.hero-right {
		flex: none;
		width: 100%;
	}
	.hero-farmacias {
		padding: 80px 0 4rem 0;
	}
	.hero-left h1 {
		font-size: 2.5rem;
	}
	.hero-buttons {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	.hero-buttons .btn {
		margin: 0;
		width: 80%;
	}
	.guarantee-badge {
		display: none;
	}
	.control-grid,
	.footer-grid,
	.solutions-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
	.about-us-container {
		flex-direction: column;
		gap: 2rem;
	}
}
