/*--- Limpiando estilos ---*/
*{
	margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
}
/*Correción: se agrega overflow-x*/
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/*--- estilos del body ---*/
/*Correción: se agrega overflow-x, wigth y position*/
body{
	background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin-top: 80px; /* ajusta según el alto real del header */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
/*--- Header y Menu ---*/
header{
    background: #fff;
    padding: 1rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
	position: fixed; /* 🔴 cambio clave */
	top: 0;
	left: 0;          /* 🔴 agregado */
	width: 100%;      /* 🔴 agregado */
	z-index: 1000;
}
.logo img{
	height: 50px;
	width: auto;
	display: block;
}
/*--- Estilo menú movil ---*/
.menu-toggle{
	display: none;
	background: none;
	border: none;
	font-size: 1.8rem;
	cursor: pointer;
	color: #333;
	margin-left: auto;
}
/*--- Mostrar boton del menú ---*/
@media (max-width: 768px){
	.menu-toggle{
		display: block;
	}
/*--- Ocultar menú ---*/
	.nav-links{
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: #fff;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		text-align: center;
		padding: 20px 0;
	}
/*--- Clase activada con JS ---*/
	.nav-links.active {
		display: flex;
	}
/*--- Estilos de enlases para moviles ---*/
	.nav-links li{
		margin: 15px 0;
	}
	.nav-links li a{
		font-size: 1.1rem;
		display: block;
	}
}
nav ul{
	display: flex;
	gap: 20px;
}
nav a{
	font-size: 0.95rem;
	font-weight: 500;
	color: 666;
	transition: color 0.3s;
}
nav a:hover{color: #000;}

/* ===== Fix menú móvil solo en tratamiento-datos ===== */
@media (max-width: 768px){
    .tratamiento-datos .nav-links{
        display: flex !important;
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
    }

    .tratamiento-datos .menu-toggle{
        display: none;
    }
}

/* --- Banner Slider - Versión Final Corregida --- */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 300%; 
    animation: slideAnimation 16s infinite;
}

.slide {
    width: 33.3333%;
    position: relative;
    display: flex;
    align-items: center;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 83%;
    height: 100%;
    display: flex;
    align-items: center; 
    z-index: 10;
    box-sizing: border-box;
    padding: 0 8%;
}

/* POSICIONAMIENTO ESCRITORIO */
.slide:nth-child(1) .slide-content,
.slide:nth-child(3) .slide-content {
    justify-content: flex-start;
}

.slide:nth-child(2) .slide-content {
    justify-content: flex-start; /* Texto a la derecha en PC */
}

/* ESTILOS DE LISTA (Tus originales) */
.slide ul {
    padding: 0;
    margin: 0;
    list-style: none;
    max-width: 600px;
}

.slide li {
    color: #1a1a1a;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem); 
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    text-transform: none;
}
/*Correcion de margin-bottom de 25px a 15px se agrega font-weight de 600,
letter-spacing de -0.5px y se reemplaza text-transform: none por text-shadow*/
.slide li.main-txt {
    color: #04a3e5; 
    font-size: clamp(1.4rem, 3.2vw, 2.4rem);
    padding-left: 0;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
/*Se agrega font-weight, letter-spacing y text-shadow*/
.slide li:not(.main-txt)::before {
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    /*content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1.5px;
    background-color: #04a3e5;*/ 
}

/* El título principal en amarillo */
/*Se agrega text-shadow*/
.slide:nth-child(2) li.main-txt { 
    color: #fac70a;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); 
}

/* El resto de la lista y sus viñetas en blanco */
.slide:nth-child(2) li:not(.main-txt) { 
    color: #ffffff; 
}

.slide:nth-child(2) li:not(.main-txt)::before { 
    background-color: #ffffff; 
}

/* =========================================
    AJUSTE MÓVIL - LO QUE NECESITABAS
========================================= */
/*Se agrega .slide li.main-txt y .slide li:not(.main-txt)*/
@media (max-width: 768px) {
    .slide {
        /*Se corrige la altura de 450px a 250px*/
        height: 250px; /* Altura para evitar que se vea muy plano */
    }

    .slide li.main-txt{
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .slie li:not(.main-txt){
        font-size: 1rem;
        margin-bottom: 8px;
    }

    /*Se agrega un width del 100% y se centra la iaguen con un object-position*/
    .slide img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* ESTO SALVA EL LOGO: Movemos la foto a la derecha para que el logo (izq) se oculte o aleje */
    .slide:nth-child(2) img {
        object-position: 80% center; 
    }

    .slide-content {
        /* En móvil, el texto siempre a la izquierda para que no se pierda */
        justify-content: flex-start !important; 
        padding: 0 25px;
    }

    .slide ul {
        max-width: 100%;
    }

}

/* Animación */
@keyframes slideAnimation {
    0%, 30% { transform: translateX(0%); }
    33.33%, 63.33% { transform: translateX(-33.3333%); }
    66.66%, 96.66% { transform: translateX(-66.6666%); }
    100% { transform: translateX(0%); }
}
/*--- Barra de iconos ---*/
.icon-bar{
	display: flex;
	justify-content: space-between;
	padding: 3rem 10%;
	background: #fff;
	flex-wrap: wrap;
}
.icon-item{
	text-align: center;
	flex: 1;
	min-width: 200px;
	margin: 10px;
}
.icon-circle{
	width: 60px;
	height: 60px;
	background: #f9f9f9;
	border-radius: 50%;
	margin: 0 auto 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 1.5rem;
}
.icon-item h3{
	font-size: 1rem;
	font-weight: 600;
	color: #444;
}
/* --- Estilos Base (Escritorio Primero) --- */
.about-section {
    width: 100%;
    position: relative;
    background-color: #ffffff; /* Fondo limpio para escritorio */
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.about {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Imagen en Escritorio: Tamaño Original */
.about img {
    width: 100%;
    height: auto; /* Mantiene la proporción original */
    display: block;
    border: none;
}

/* Contenido en Escritorio: Flotando sobre la imagen original */
.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
    /* Degradado sutil para leer sobre la foto */
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 70%);
}

.about-content {
    max-width: 750px;
    text-align: left;
}

h2.about {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content li {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content li:not(:last-child)::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #ffffff;
    margin-top: 1.5rem;
}

/* =========================================
    AJUSTE PARA MÓVIL (COMPORTAMIENTO OVERLAY)
========================================= */
@media (max-width: 768px) {
    .about-section {
        height: 80vh; /* Forzamos altura en móvil para el efecto overlay */
    }

    .about {
        height: 100%;
    }

    /* En móvil la imagen se estira para cubrir todo el fondo sin dejar bordes */
    .about img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; 
        object-position: center;
    }

    .about-overlay {
        background: rgba(0, 0, 0, 0.6); /* Oscurecemos más en móvil para legibilidad */
        padding: 0 25px;
        align-items: center;
    }

    h2.about {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about-content li {
        font-size: 1rem;
        line-height: 1.6;
    }
}
/* --- Sección Servicios Detail --- */
.services-detail {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', Tahoma, sans-serif;
    background-color: #ffffff;
}

.services {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Imagen en Escritorio: Tamaño Original */
.services img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* Capa de texto (Overlay) */
.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    /* Degradado blanco sutil para legibilidad en escritorio */
    background: rgba(255, 255, 255, 0.4); 
}

.services-content {
    width: 100%;
    max-width: 1100px;
    z-index: 2;
}

/* Título Principal: NEGRO, delgado */
.services-main-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300; /* Estilo InnoByte */
    color: #1a1a1a;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-columns {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.service-block {
    flex: 1;
}

/* Títulos de bloques: Delgados y con color corporativo */
.service-title {
    font-size: 1.4rem;
    font-weight: 400;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-title.tecnica {
    color: #04a3e5; 
    border-bottom: 1px solid #04a3e5;
}

.service-title.funcional {
    color: #fac70a; 
    border-bottom: 1px solid #fac70a;
}

.service-block ul {
    list-style: none;
    padding: 0;
}

.service-block li {
    color: #1a1a1a;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 1.5rem;
    position: relative;
}

.service-block li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
}

/* =========================================
    AJUSTE PARA MÓVIL (SÓLO CUANDO ES < 860px)
========================================= */
@media (max-width: 860px) {
    .services-detail {
        /* En móvil, la sección se adapta al alto del texto */
        min-height: auto; 
    }

    .services {
        /* Permitimos que el contenedor crezca con el texto */
        display: block; 
    }

    /* Imagen en móvil: se convierte en fondo total sin bordes */
    .services img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .services-overlay {
        position: relative; /* Deja de flotar para empujar el alto del contenedor */
        background: rgba(255, 255, 255, 0.92); /* Fondo más sólido para leer mucho texto */
        padding: 4rem 1.5rem;
    }

    .services-main-title {
        font-size: 1.8rem;
        text-align: left; /* Alineación a la izquierda */
        margin-bottom: 2rem;
    }

    .services-columns {
        flex-direction: column; /* Apilamos las columnas */
        gap: 2.5rem;
        align-items: flex-start;
    }

    .service-block {
        width: 100%;
        text-align: left;
    }

    .service-title {
        font-size: 1.3rem;
    }
}

/* --- Variables --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #1f2937;
    --text-medium: #4b5563; /* Nuevo tono intermedio */
    --text-light: #9ca3af;   /* Más claro para placeholders/etiquetas */
    --bg-input: #f9fafb;
    --border-color: #e5e7eb;
    /* Sombras más sutiles para el minimalismo */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Sección General y Tipografía --- */
.contact-section {
    background-color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    /* Tipografía profesional y DELGADA (weight 300) */
    font-family: 'Montserrat', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; 
    color: var(--text-medium);
    line-height: 1.6;
}

/* --- Contenedor Principal (Layout de 2 Columnas) --- */
.contact-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 960px; /* Más ancho para caber las dos columnas */
    /* Padding reducido para look minimalista */
    padding: 50px; 
    border-radius: 16px;
    /* Sombra retirada o muy sutil para efecto "plano" minimalista */
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border-color);
    
    /* Flexbox para las dos columnas */
    display: flex;
    gap: 60px; /* Espacio entre izquierda y derecha */
    align-items: flex-start;
}

/* Distribución equitativa del espacio */
.contact-info, 
.form-wrapper {
    flex: 1; /* Cada columna ocupa el 50% */
}

/* --- Títulos --- */
h2.section-title,
h2.form-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    /* Un poco más de peso para los títulos, pero sutil */
    font-weight: 500; 
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h2.form-title {
     text-transform: none; /* "Envíanos un mensaje" en estilo normal */
}

/* --- Columna Izquierda: Información --- */
.info-description {
    margin-bottom: 30px;
    font-size: 1rem;
}

.info-list {
    list-style: none;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.policy-link {
    color: #0066cc !important;
    text-decoration: underline;
    font-weight: 500;
}

.policy-link:hover {
    color: #004999 !important;
}

.form-group {
    margin-bottom: 16px; /* Menos espacio entre campos */
}

/* Inputs Minimalistas (Más pequeños y limpios) */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px 14px; /* Padding reducido */
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px; /* Bordes menos redondeados */
    font-size: 0.9rem; /* Fuente ligeramente más pequeña */
    font-family: inherit; /* Heredar la fuente delgada */
    font-weight: 300;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

/* Placeholder más claro */
::placeholder {
    color: var(--text-light);
    opacity: 1;
}

textarea {
    resize: vertical;
    min-height: 100px; /* Altura inicial reducida */
}

/* Efecto Focus Minimalista */
input:focus,
textarea:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    /* Anillo muy sutil */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08); 
}

/* Input de teléfono */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
}

#prefix {
    width: 60px;
    text-align: center;
    background-color: #f0f2f5;
    color: var(--text-medium);
    font-weight: 400;
    cursor: default;
}

/* Checkbox Minimalista */
.checkbox-group {
    margin-top: 10px;
    margin-bottom: 20px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.checkbox-wrapper label {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-medium);
    line-height: 1.4;
    cursor: pointer;
}

/* Botón Minimalista */
button[type="submit"] {
    width: auto; /* Ya no ancho completo, más sutil */
    min-width: 180px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500; /* Un poco de peso para el CTA */
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Responsividad (Tablet y Móvil) --- */
@media (max-width: 860px) {
    .contact-container {
        /* Cambia a columna vertical en pantallas medianas/pequeñas */
        flex-direction: column; 
        gap: 40px;
        padding: 30px;
        max-width: 550px; /* Vuelve al ancho original para móvil */
    }

    /* Centrar el contenido en móvil si se desea */
    .contact-info {
        text-align: left;
    }
    
    .info-item {
        align-items: left;
    }

    button[type="submit"] {
        width: 100%; /* Botón ancho completo de nuevo en móvil */
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 15px;
    }
    .contact-container {
        padding: 20px;
    }
}
/*---Whatsapp_Old
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.whatsapp-icon {
    width: 40px;
    height: 40px;
}
---*/

/* Nuevo boton whatsapp */
.whatsapp-float{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

/* estilos para el icono */
.whatsapp-float i{
    color: #ffffff;
    font-size: 36px;
}

/* efecto del hover */
.whatsapp-float:hover{
    transform: scale(1.1);
    animation: none;
}

/* animacion de latido para el icono de whatsapp */
@keyframes pulse-whatsapp{
    0%{ box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%{ box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100%{ box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Politica de datos ===== */
.tratamiento-datos {
    margin: 0;
    padding: 0;
    background-color: #f4f6f9; /* opcional, fondo suave */
}

.tratamiento-datos .content-tratamiento {
    max-width: 900px;        /* ancho profesional de lectura */
    margin: 60px auto;       /* bordes blancos arriba y abajo + centrado */
    padding: 40px;           /* espacio interno */
    background-color: #ffffff; /* fondo blanco */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* opcional elegante */
}

/* Justificar todo el texto */
.tratamiento-datos .content-tratamiento p,
.tratamiento-datos .content-tratamiento li {
    text-align: justify;
    line-height: 1.8;
}
/*--- Footer ---*/
footer{
	background: #222;
	color: #aaa;
	padding: 3rem 10%;
	text-align: center;
	font-size: 0.9rem;
} 
footer .copyright a{
	color: #aaa;
	text-decoration: none;
	position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
footer .copyright a:hover{
	color: #fff;
	text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

footer .copyright a::after{
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 1px;
	background: #fff;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

footer .copyright a:hover::after{
	opacity: 1;
}