/* RESETEO GENERAL PARA ELIMINAR ESTILOS POR DEFECTO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ESTILOS GLOBALES DEL BODY */
body {
    font-family: 'Inter', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f7f7f7;
    overflow-x: hidden;
}

/* CONTENEDOR SPACER PARA EL VIEWPORT INICIAL */
.viewport-spacer {
    height: 100vh; /* Ocupa un viewport completo */
    background: transparent; /* Transparente para mostrar hero fijo detrás */
}

/* IMPORTACIÓN DE FUENTES ESPECÍFICAS PARA EL HERO Y SERVICIOS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500;600&family=Poppins:wght@200;300;600&family=Crete+Round:wght@300;400&display=swap');

/* BLOQUE 0 - NAVBAR FIJA */
.navbar {
    position: fixed;
    top: 36px; /* MÁS ESPACIO EN ESCRITORIO */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.22); /* OPACIDAD AUMENTADA UN 7% */
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(8, 165, 255, 0.4);
    z-index: 1000;
}

/* CONTENEDOR DE LOS LINKS */
.navbar-contenedor {
    position: relative;
    display: flex;
    justify-content: center;
}

/* LISTA DE LINKS */
.navbar-lista {
    display: flex;
    list-style: none;
    gap: 20px;
}

/* ESTILOS DE LOS LINKS */
.navbar-link {
    color: #002daa;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    padding: 5px 16px;
    line-height: 1.2;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 2;
    display: inline-block;
}

/* LINK ACTIVO */
.navbar-link.activo {
    color: white;
    transform: scale(1.1);
}

/* INDICADOR DINÁMICO */
.navbar-indicador {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    background-color: #002daa;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* BOTÓN FLOTANTE DE CONTACTO */
.boton-contacto {
    position: fixed;
    bottom: 20px;
    left: 20px; /* ABAJO A LA IZQUIERDA EN ESCRITORIO */
    transform: none; /* SIN TRANSFORM EN ESCRITORIO */
    background-color: #002daa;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(8, 165, 255, 0.5); /* SOMBRA REFORZADA */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ÍCONO DEL BOTÓN DE CONTACTO */
.boton-contacto-icono {
    width: 24px;
    height: 24px;
}

/* EFECTO HOVER EN BOTÓN CONTACTO */
.boton-contacto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(8, 165, 255, 0.7); /* SOMBRA MÁS FUERTE */
}

/* ANIMACIÓN SHAKE + SCALE PARA EL ÍCONO */
@keyframes shake-scale {
    0% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-2px) rotate(-5deg) scale(1.1); }
    50% { transform: translateX(2px) rotate(5deg) scale(1.1); }
    75% { transform: translateX(-2px) rotate(-5deg) scale(1.1); }
    100% { transform: translateX(0) scale(1); }
}

/* BOTTOM SHEET */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw; /* 60% DEL ANCHO EN ESCRITORIO */
    background-color: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 8px 25px rgba(8, 165, 255, 0.5); /* SOMBRA AZUL CELESTE */
    z-index: 2000;
    padding: 20px;
}

/* CONTENIDO DEL BOTTOM SHEET */
.bottom-sheet-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* TEXTFIELD */
.bottom-sheet-textfield {
    width: 100%;
    height: 80px; /* 2 RENGLONES */
    border: 1px solid #ccc; /* BORDE CLARO */
    border-radius: 10px;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    resize: none;
    overflow-y: auto; /* SCROLL INTERNO */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* SOMBRA SUTIL */
}

/* PLACEHOLDER */
.bottom-sheet-textfield::placeholder {
    color: #999; /* GRIS CLARO */
}

/* BOTONES DEL BOTTOM SHEET */
.bottom-sheet-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* BOTÓN INDIVIDUAL */
.bottom-sheet-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #002daa;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(8, 165, 255, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ÍCONO DE BOTONES */
.bottom-sheet-icono {
    width: 24px;
    height: 24px;
}

/* EFECTO HOVER EN BOTONES */
.bottom-sheet-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(8, 165, 255, 0.6);
}

/* BLOQUE 1 - HERO DE INICIO */
.hero {
    position: fixed; /* Cambiado de relative a fixed para pegarlo al fondo */
    top: 0; /* Pegado al top */
    left: 0; /* Pegado al left */
    min-height: 100vh;
    width: 100vw;
    overflow: hidden; /* EVITA SCROLL LATERAL */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1; /* Capa detrás de todo lo demás */
}

/* VIDEO DE FONDO */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ESTILOS DEL VIDEO */
.video-fondo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CROPEA PARA OCUPAR EL VIEWPORT SIN DESBORDE */
    z-index: 1;
}

/* OVERLAY OSCURO */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Restaurado a semi-oscuro para contraste con letras */
    z-index: 2;
}

/* CONTENIDO CENTRADO */
.hero-contenido {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

/* LOGO */
.hero-logo {
    width: 200px; /* TAMAÑO BASE, AJUSTABLE */
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in; /* ANIMACIÓN FADE-IN */
    transition: transform 0.3s ease; /* ESCALA AL HOVER */
}

/* EFECTO HOVER EN LOGO */
.hero-logo:hover {
    transform: scale(1.03);
}

/* TÍTULO PRINCIPAL */
.hero-titulo {
    font-family: 'Roboto', sans-serif; /* FUENTE ROBOTO */
    font-size: 4.4275rem; /* AUMENTO 15% DESDE 3.85rem */
    font-weight: 600; /* MÁS FIRME */
    margin-bottom: 0; /* PEGADO AL SUBTÍTULO */
    animation: fadeIn 1s ease-in 0.2s; /* FADE-IN CON RETRASO */
    transition: transform 0.3s ease; /* ESCALA AL HOVER */
    line-height: 1; /* MISMO ALTO */
    letter-spacing: 0.02em; /* AJUSTE PARA ANCHO */
    text-transform: uppercase; /* MAYÚSCULAS */
}

/* EFECTO HOVER EN TÍTULO */
.hero-titulo:hover {
    transform: scale(1.03);
}

/* SUBTÍTULO */
.hero-subtitulo {
    font-family: 'Poppins', sans-serif; /* FUENTE POPPINS */
    font-size: 1.8rem; /* REDUCIDO PARA IGUALAR ANCHO CON EL TÍTULO */
    font-weight: 300; /* MÁS FINO EN ESCRITORIO */
    margin-top: 0; /* PEGADO AL TÍTULO */
    margin-bottom: 0; /* SIN MARGEN INFERIOR */
    animation: fadeIn 1s ease-in 0.4s; /* FADE-IN CON MÁS RETRASO */
    transition: transform 0.3s ease; /* ESCALA AL HOVER */
    line-height: 1; /* MISMO ALTO QUE EL TÍTULO */
    letter-spacing: 0.5px; /* ELEGANCIA */
    text-transform: uppercase; /* MAYÚSCULAS */
    width: 100%; /* NO EXCEDE EL ANCHO DEL TÍTULO */
    text-align: center; /* CENTRA EL TEXTO */
    max-width: 1200px; /* LIMITE MÁXIMO */
}

/* EFECTO HOVER EN SUBTÍTULO */
.hero-subtitulo:hover {
    transform: scale(1.03);
}

/* ANIMACIÓN FADE-IN */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BLOQUE 2 - NUESTROS SERVICIOS */
.servicios {
    min-height: 100vh; /* OCUPA 1 VIEWPORT */
    padding-top: 80px; /* Espacio para no tapar título con navbar */
    background-color: #f7f7f7; /* FONDO BLANCO */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Crea stacking context */
    z-index: 1; /* Capa sobre el hero */
    border-top-left-radius: 30px; /* Bordes redondos top-left */
    border-top-right-radius: 30px; /* Bordes redondos top-right */
}

/* TÍTULO DE LA SECCIÓN */
.servicios-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #002b87; /* AZUL INSTITUCIONAL */
    margin-bottom: 20px;
    text-align: center;
}

/* CONTENEDOR DE TARJETAS */
.servicios-contenedor {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 COLUMNAS EN ESCRITORIO */
    gap: 20px;
    width: 90%;
    max-width: 1200px;
}

/* TARJETAS INDIVIDUALES */
.tarjeta {
    position: relative;
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease-in-out; /* TRANSICIÓN SUAVE */
    display: flex;
    flex-direction: column; /* ÍCONO ARRIBA, TÍTULO ABAJO */
    align-items: center;
    justify-content: flex-start; /* CONTENIDO EN LA PARTE SUPERIOR */
    height: 220px; /* Aumentado a 220px para evitar desborde en activo */
    min-height: 220px; /* MANTENER ALTO FIJO */
}

/* ÍCONO DE LA TARJETA (SIEMPRE VISIBLE) */
.tarjeta-icono {
    color: #002daa; /* AZUL DE BOTONES */
    margin-bottom: 5px; /* ESPACIO ANTES DEL TÍTULO */
    margin-top: 60px; /* Reducido de 80px a 60px para centrar mejor en inactivo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, margin-top 0.3s ease-in-out; /* TRANSICIÓN PARA MARGEN */
}

/* TAMAÑO DEL SVG EN ESTADO INACTIVO (ESCRITORIO) */
.tarjeta-icono svg {
    width: 3.5rem; /* TAMAÑO GRANDE EN INACTIVO */
    height: 3.5rem;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out; /* TRANSICIÓN PARA TAMAÑO */
}

/* TÍTULO DE LA TARJETA (SIEMPRE VISIBLE) */
.tarjeta-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem; /* TAMAÑO ORIGINAL */
    font-weight: 600; /* LETRA NEGRITA */
    color: #002daa; /* AZUL DE BOTONES Y NAVBAR */
    display: block; /* OCUPA SU ESPACIO */
    text-align: center;
    flex-grow: 0; /* NO SE EXTIENDE */
    margin-top: 10px; /* ESPACIO ORIGINAL */
    transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out, margin-top 0.3s ease-in-out; /* AÑADE TRANSICIÓN PARA MARGEN */
}

/* DESCRIPCIÓN DE LA TARJETA (OCULTA POR DEFECTO) */
.tarjeta-descripcion {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; /* TAMAÑO ORIGINAL */
    font-weight: 300;
    color: #555;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* SOLO FADE-IN */
    display: block;
    margin-top: 2px; /* ESPACIO BASE */
    overflow-wrap: break-word; /* QUEBRE EL TEXTO SI ES LARGO */
    flex-grow: 1; /* OCUPA EL ESPACIO RESTANTE */
}

/* BOTÓN DE LA TARJETA (OCULTO POR DEFECTO) */
.tarjeta-boton {
    display: none;
    background-color: #002daa;
    color: white;
    border: none;
    border-radius: 50px; /* FORMA PILL */
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0; /* ELIMINA ESPACIO PARA QUE QUEPE */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* SOLO OPACITY Y SCALE */
    margin-left: auto;
    margin-right: auto; /* CENTRO HORIZONTAL */
    opacity: 0;
}

/* EFECTO HOVER/TAP EN LAS TARJETAS */
.tarjeta:hover,
.tarjeta:active {
    transform: scale(1.02); /* ESCALA SUAVE */
    box-shadow: 0 4px 20px rgba(8, 165, 255, 0.54); /* SOMBRA AZUL SUAVE */
}

/* ESTADO ACTIVO PARA ÍCONO */
.tarjeta:hover .tarjeta-icono,
.tarjeta:active .tarjeta-icono {
    transform: translateY(-50%) scale(1); /* SUBE AL TOPE SIN ACHICAR */
    margin-top: 10px; /* MÁS CERCA DEL BORDE SUPERIOR */
}

/* TAMAÑO DEL SVG EN ESTADO ACTIVO */
.tarjeta:hover .tarjeta-icono svg,
.tarjeta:active .tarjeta-icono svg {
    width: 2rem; /* TAMAÑO MÁS CHICO AL ACTIVARSE */
    height: 2rem;
}

/* ESTADO ACTIVO PARA TÍTULO */
.tarjeta:hover .tarjeta-titulo,
.tarjeta:active .tarjeta-titulo {
    transform: translateY(-50%) scale(0.75); /* SUBE Y ACHICA 25% */
    margin-top: 5px; /* MÁS CERCA DEL BORDE SUPERIOR */
}

/* ESTADO ACTIVO PARA DESCRIPCIÓN (GENERAL) */
.tarjeta:hover .tarjeta-descripcion,
.tarjeta:active .tarjeta-descripcion {
    opacity: 1; /* FADE-IN */
    margin-top: 5px; /* Aumentado a 5px para más espacio y evitar desborde */
}

/* ESTADO ACTIVO PARA DESCRIPCIÓN (TARJETAS ESPECÍFICAS) */
.tarjeta-pymes:hover .tarjeta-descripcion,
.tarjeta-pymes:active .tarjeta-descripcion,
.tarjeta-familia:hover .tarjeta-descripcion,
.tarjeta-familia:active .tarjeta-descripcion,
.tarjeta-contratos:hover .tarjeta-descripcion,
.tarjeta-contratos:active .tarjeta-descripcion {
    margin-top: 5px; /* Aumentado a 5px para más espacio y evitar desborde */
}

/* ESTADO ACTIVO PARA BOTÓN */
.tarjeta:hover .tarjeta-boton,
.tarjeta:active .tarjeta-boton {
    display: block; /* MUESTRA EL BOTÓN */
    opacity: 1; /* FADE-IN */
    transform: scale(1.05); /* LEVE BOUNCE */
}

/* BLOQUE 3 - NOSOTROS */
.nosotros {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f7f7;
    position: relative; /* Crea stacking context */
    z-index: 1; /* Capa sobre el hero */
}

/* CONTENEDOR PRINCIPAL */
.box-view {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* CARRUSEL SPLIDE */
.splide {
    width: 100%;
    height: 100%;
}

/* PISTA Y LISTA DEL CARRUSEL */
.splide__track,
.splide__list {
    height: 100%;
}

/* TARJETAS DEL CARRUSEL */
.splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nosotros-tarjeta {
    width: 75vw;
    height: 80vh; /* AJUSTADO PARA ENCAJAR */
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 6px 15px rgba(8, 165, 255, 0.5); /* SOMBRA MÁS INTENSA */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* EFECTO HOVER/ACTIVE EN TARJETAS */
.nosotros-tarjeta:hover,
.nosotros-tarjeta:active {
    transform: scale(1.01);
    box-shadow: 0 8px 40px rgba(8, 165, 255, 1); /* SOMBRA MÁS INTENSA Y EXTENDIDA */
}

/* OVERLAY OSCURO */
.nosotros-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

/* TEXTO EN OVERLAY */
.nosotros-overlay p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: white;
    text-align: center;
    padding: 20px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* GLOW BLANCO */
}

/* MOSTRAR OVERLAY EN HOVER/ACTIVE */
.nosotros-tarjeta:hover .nosotros-overlay,
.nosotros-tarjeta:active .nosotros-overlay {
    opacity: 1;
}

/* TÍTULO DE LA TARJETA */
.nosotros-tarjeta-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    text-shadow: 0 0 10px rgba(8, 165, 255, 0.7); /* GLOW AZUL */
}

/* RESEÑAS EN LA TERCERA TARJETA */
.nosotros-tarjeta-resenas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* COMIENZA DESDE ARRIBA */
    height: 80vh; /* MISMO TAMAÑO QUE OTRAS TARJETAS */
    width: 75vw;
    padding: 20px;
}

/* TÍTULO DE RESEÑAS */
.nosotros-resenas-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem; /* MÁS GRANDE QUE .nosotros-tarjeta-titulo */
    font-weight: 500; /* PESO MEDIO */
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* CONTENEDOR DE RESEÑAS */
.nosotros-resenas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* AUTOR DE LA RESEÑA */
.resena-autor {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

/* RESEÑA INDIVIDUAL */
.resena {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.resena p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 5px;
}

.estrellas {
    font-size: 1rem;
    color: #ffd700; /* AMARILLO PARA ESTRELLAS */
}

/* SEPARADOR ENTRE RESEÑAS */
.resena-separador {
    width: 80%;
    height: 1px;
    background-color: rgba(8, 165, 255, 0.2); /* CELESTE SUTIL */
    border: none;
    margin: 10px auto;
    box-shadow: 0 0 5px rgba(8, 165, 255, 0.3); /* SOMBRA CELESTE SUAVE */
}

/* BLOQUE 4 - CONTACTO */
.contacto {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    padding: 40px 20px;
    position: relative; /* Crea stacking context */
    z-index: 1; /* Capa sobre el hero */
}

/* CONTENEDOR PRINCIPAL */
.contacto-contenedor {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* MAPA */
.contacto-mapa {
    width: 40%; /* 50% DE 80% */
    aspect-ratio: 1 / 1; /* CUADRADO EN ESCRITORIO */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(8, 165, 255, 0.3); /* SOMBRA SUAVE CELESTE */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* IFRAME DEL MAPA */
.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* BOTÓN DE MAPA */
.contacto-boton-mapa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #002daa;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 8px; /* SUBIDO 7 PÍXELES */
    box-shadow: 0 4px 10px rgba(8, 165, 255, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* EFECTO HOVER EN BOTÓN MAPA */
.contacto-boton-mapa:hover,
.contacto-boton-mapa:active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(8, 165, 255, 0.6);
}

/* CONTENEDOR DE BOTONES */
.contacto-botones {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 COLUMNAS EN ESCRITORIO */
    gap: 20px;
    width: 80%;
    max-width: 600px;
}

/* GRUPO DE BOTÓN (TEXTO GUÍA + BOTÓN) */
.contacto-boton-grupo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* TEXTO GUÍA */
.contacto-texto-guia {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #333; /* GRIS OSCURO */
    text-align: center;
}

/* BOTONES DE CONTACTO */
.contacto-boton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #002daa;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(8, 165, 255, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* ÍCONOS DE BOTONES */
.contacto-boton .contacto-icono,
.contacto-boton-mapa .contacto-icono {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease-in-out;
}

/* CONTENIDO ORIGINAL DE BOTONES */
.contacto-boton-contenido {
    transition: opacity 0.3s ease-in-out;
}

/* TEXTO DE HOVER */
.contacto-boton-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* EFECTO HOVER EN BOTONES */
.contacto-boton:hover,
.contacto-boton:active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(8, 165, 255, 0.6);
}

/* RESPONSIVE PARA MÓVIL */
@media (max-width: 600px) {
    .navbar {
        width: 95%;
        top: 20px;
        padding: 6px;
    }
    .navbar-lista {
        gap: 10px;
    }
    .navbar-link {
        font-size: 0.9rem;
        padding: 4px 12px;
        line-height: 1.2;
    }
    .boton-contacto {
        left: 50%; /* CENTRADO EN MÓVIL */
        transform: translateX(-50%);
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .navbar-indicador {
        height: 30px;
        top: 50%;
        transform: translateY(-50%);
    }
    /* AJUSTES PARA EL SPACER EN MÓVIL */
    .viewport-spacer {
        height: 100vh; /* Mismo tamaño en móvil, vh es responsive */
        background: transparent;
    }
    /* AJUSTES PARA HERO EN MÓVIL */
    .hero-logo {
        width: 150px; /* MÁS CHICO EN MÓVIL */
    }
    .hero-titulo {
        font-size: 2.5rem; /* MÁS CHICO EN MÓVIL */
        letter-spacing: 0.01em; /* AJUSTE PARA ANCHO */
    }
    .hero-subtitulo {
        font-size: 2.2rem; /* TAMAÑO FIJO MÁS CHICO */
        font-weight: 200; /* MÁS FINO SI ES SOPORTADO */
        letter-spacing: 0.5px; /* ELEGANCIA */
        margin-top: 0; /* PEGADO AL TÍTULO */
        margin-bottom: 0; /* SIN MARGEN INFERIOR */
        width: 100%; /* NO EXCEDE EL ANCHO DEL TÍTULO */
        text-align: center; /* CENTRA EL TEXTO */
        max-width: 100%; /* LIMITE MÁXIMO */
    }
    /* AJUSTES PARA SERVICIOS EN MÓVIL */
    .servicios {
        min-height: auto; /* AJUSTA ALTURA EN MÓVIL */
        padding-top: 50px; /* Espacio para navbar en mobile */
        padding-bottom: 20px; /* Espacio extra bottom para no tapar con nosotros */
        position: relative;
        z-index: 1;
        border-top-left-radius: 30px; /* Bordes redondos top-left en mobile también */
        border-top-right-radius: 30px; /* Bordes redondos top-right en mobile también */
    }
    .servicios-titulo {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .servicios-contenedor {
        grid-template-columns: 1fr; /* 1 COLUMNA EN MÓVIL */
        gap: 10px;
    }
    .tarjeta {
        padding: 15px;
        height: 220px; /* Aumentado a 220px para evitar desborde en activo */
        min-height: 220px; /* MANTENER ALTO FIJO */
        display: flex;
        flex-direction: column; /* ÍCONO ARRIBA, TÍTULO ABAJO */
        align-items: center;
        justify-content: flex-start;
    }
    .tarjeta-icono {
        margin-bottom: 5px;
        margin-top: 60px; /* Reducido de 80px a 60px para centrar mejor en inactivo */
        transition: transform 0.3s ease-in-out, margin-top 0.3s ease-in-out;
    }
    .tarjeta-icono svg {
        width: 2.1rem; /* AUMENTADO 40% DESDE ~1.5rem */
        height: 2.1rem;
        transition: width 0.3s ease-in-out, height 0.3s ease-in-out; /* TRANSICIÓN PARA TAMAÑO */
    }
    .tarjeta-titulo {
        font-size: 1rem; /* MÁS GRANDE */
        font-weight: 600; /* NEGRITA */
        color: #002daa; /* AZUL INSTITUCIONAL */
        margin-top: 10px; /* ESPACIO ORIGINAL */
        transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out, margin-top 0.3s ease-in-out;
    }
    .tarjeta-descripcion {
        font-size: 0.8rem;
        opacity: 0;
        transition: opacity 0.3s ease-in-out; /* SOLO FADE-IN */
    }
    .tarjeta-boton {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    /* AJUSTES PARA ACTIVACIÓN EN MÓVIL */
    .tarjeta:active .tarjeta-icono {
        transform: translateY(-50%) scale(1); /* SUBE AL TOPE SIN ACHICAR */
        margin-top: 10px; /* MÁS CERCA DEL BORDE SUPERIOR */
    }
    .tarjeta:active .tarjeta-icono svg {
        width: 2rem; /* TAMAÑO MÁS CHICO AL ACTIVARSE */
        height: 2rem;
    }
    .tarjeta:active .tarjeta-titulo {
        transform: translateY(-50%) scale(0.93); /* SUBE Y ACHICA 7% */
        margin-top: 5px; /* MÁS CERCA DEL BORDE SUPERIOR */
    }
    .tarjeta:active .tarjeta-descripcion {
        opacity: 1; /* FADE-IN */
        margin-top: 5px; /* Aumentado a 5px para más espacio y evitar desborde */
    }
    .tarjeta:active .tarjeta-boton {
        display: block; /* MUESTRA EL BOTÓN */
        opacity: 1; /* FADE-IN */
        transform: scale(1.05); /* LEVE BOUNCE */
    }
    /* AJUSTES PARA NOSOTROS EN MÓVIL */
    .splide {
        height: 100%;
    }
    .splide__track,
    .splide__list {
        height: 100%;
    }
    .splide__slide {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .nosotros-tarjeta {
        width: 75vw;
        height: 75vh; /* PROPORCIÓN 3:4 APROX */
        aspect-ratio: 3 / 4;
        box-shadow: 0 6px 15px rgba(8, 165, 255, 0.5); /* SOMBRA COMO EN ESCRITORIO */
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    }
    .nosotros-tarjeta:active {
        transform: scale(1.01);
        box-shadow: 0 8px 40px rgba(8, 165, 255, 1); /* SOMBRA ACTIVA COMO EN ESCRITORIO */
    }
    .nosotros-tarjeta-titulo {
        font-size: 1.5rem;
        bottom: 15px;
    }
    .nosotros-overlay p {
        font-size: 1rem;
        padding: 15px;
    }
    .nosotros-tarjeta-resenas {
        width: 75vw;
        height: 75vh;
        aspect-ratio: 3 / 4;
        padding: 15px;
        overflow-y: auto; /* SCROLL INTERNO VERTICAL */
    }
    .nosotros-resenas {
        width: 100%;
    }
    .nosotros-resenas-titulo {
        font-size: 1.8rem; /* AJUSTADO PARA MÓVIL */
        margin-bottom: 15px;
    }
    .resena-autor {
        font-size: 1rem;
    }
    .resena p {
        font-size: 0.9rem;
    }
    .estrellas {
        font-size: 0.9rem;
    }
    .resena-separador {
        margin: 8px auto;
    }
    /* AJUSTES PARA CONTACTO EN MÓVIL */
    .contacto {
        padding: 20px;
    }
    .contacto-mapa {
        width: 97%; /* MÁS ANCHO EN MÓVIL */
        aspect-ratio: 1 / 1; /* CUADRADO EN MÓVIL */
    }
    .contacto-botones {
        grid-template-columns: 1fr; /* 1 COLUMNA EN MÓVIL */
        gap: 15px;
        width: 90%;
    }
    .contacto-texto-guia {
        font-size: 0.9rem;
        color: #333; /* GRIS OSCURO */
    }
    .contacto-boton {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .contacto-boton-mapa {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 8px; /* SUBIDO 7 PÍXELES */
    }
    /* AJUSTES PARA BOTTOM SHEET EN MÓVIL */
    .bottom-sheet {
        width: 97vw; /* 97% DEL ANCHO EN MÓVIL */
        box-shadow: 0 8px 25px rgba(8, 165, 255, 0.5); /* SOMBRA AZUL CELESTE */
    }
    .bottom-sheet-textfield {
        font-size: 0.9rem;
        height: 60px; /* AJUSTADO PARA MÓVIL */
    }
    .bottom-sheet-button {
        padding: 10px;
        font-size: 0.9rem;
    }
    /* AJUSTES PARA BOTÓN MODO OSCURO EN MÓVIL */
    .toggle-modo {
        padding: 8px 16px;
        font-size: 0.9rem;
        bottom: 20vh !important; /* Subido al 20% desde abajo (contando de abajo a arriba) */
        transform: scale(0.85); /* 15% más chico */
    }
    /* AJUSTES PARA NOSOTROS EN MÓVIL */
    .nosotros {
        position: relative;
        z-index: 1;
    }
    /* AJUSTES PARA CONTACTO EN MÓVIL */
    .contacto {
        position: relative;
        z-index: 1;
    }
}

/* MODO OSCURO - OVERRIDES EXHAUSTIVOS PARA TODO */
body.modo-oscuro {
    background-color: #111 !important;
    color: #ddd !important; /* Gris claro para texto general, no puro white para mejor legibilidad */
}

body.modo-oscuro *,
body.modo-oscuro a,
body.modo-oscuro button,
body.modo-oscuro h1,
body.modo-oscuro h2,
body.modo-oscuro h3,
body.modo-oscuro p,
body.modo-oscuro li,
body.modo-oscuro span {
    color: #ddd !important;
    border-color: #444 !important; /* Bordes grises oscuros */
}

/* SVGs generales: Blanco sin filters/invert, restaurar silueta/grosor original */
body.modo-oscuro svg {
    fill: none !important;
    stroke: white !important; /* Blanco puro para strokes */
    color: white !important; /* Para currentColor */
    stroke-width: 2 !important; /* Restaurar grosor original de SVGs (como en HTML source) */
}

/* SVGs en servicios: Específicamente forzar blanco (ya cubierto por general, pero explicit para certeza) */
body.modo-oscuro .tarjeta-icono svg {
    fill: none !important;
    stroke: white !important;
}

/* SVGs con clase icon-tabler (común en tus icons): Forzar blanco */
body.modo-oscuro .icon-tabler {
    stroke: white !important;
    color: white !important;
}

/* Para imgs no SVGs generales: Removido filter/invert para hacer "inmunes" (no distorsión) */
body.modo-oscuro img {
    /* Sin filter - se ven como originales, contrastan con fondos dark */
}

/* Overrides para secciones y fondos */
body.modo-oscuro .hero,
body.modo-oscuro .servicios,
body.modo-oscuro .nosotros,
body.modo-oscuro .contacto,
body.modo-oscuro .box-view {
    background-color: #111 !important;
}

body.modo-oscuro .hero-overlay {
    background: rgba(0, 0, 0, 0.5) !important; /* Semi-oscuro en dark también para contraste */
}

body.modo-oscuro .navbar {
    background: rgba(30, 30, 30, 0.8) !important; /* Dark translúcido */
    box-shadow: 0 4px 10px rgba(8, 165, 255, 0.4) !important; /* SOMBRA CELESTE-AZUL */
}

body.modo-oscuro .navbar-link {
    color: #bbb !important;
}

body.modo-oscuro .navbar-link.activo {
    color: #fff !important;
}

body.modo-oscuro .navbar-indicador {
    background-color: #002daa !important; /* Conservar AZUL original */
}

body.modo-oscuro .bottom-sheet,
body.modo-oscuro .bottom-sheet-textfield {
    background-color: #1a1a1a !important;
    border-color: #444 !important;
    color: #ddd !important;
    box-shadow: 0 8px 25px rgba(8, 165, 255, 0.5) !important; /* SOMBRA CELESTE-AZUL */
}

body.modo-oscuro .bottom-sheet-textfield::placeholder {
    color: #888 !important;
}

body.modo-oscuro .tarjeta,
body.modo-oscuro .nosotros-tarjeta,
body.modo-oscuro .nosotros-tarjeta-resenas {
    background-color: #1a1a1a !important;
    box-shadow: 0 4px 10px rgba(8, 165, 255, 0.5) !important; /* SOMBRA CELESTE-AZUL */
}

body.modo-oscuro .tarjeta-icono,
body.modo-oscuro .tarjeta-titulo,
body.modo-oscuro .tarjeta-descripcion,
body.modo-oscuro .servicios-titulo,
body.modo-oscuro .nosotros-resenas-titulo,
body.modo-oscuro .resena-autor,
body.modo-oscuro .resena p,
body.modo-oscuro .contacto-texto-guia {
    color: #ddd !important;
}

body.modo-oscuro .estrellas {
    color: #ffd700 !important; /* Mantener amarillo para estrellas */
}

body.modo-oscuro .resena-separador {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.modo-oscuro .boton-contacto,
body.modo-oscuro .bottom-sheet-button,
body.modo-oscuro .tarjeta-boton,
body.modo-oscuro .contacto-boton,
body.modo-oscuro .contacto-boton-mapa,
body.modo-oscuro .toggle-modo {
    background-color: #002daa !important; /* Conservar AZUL original para todos los botones */
    color: #ddd !important;
    box-shadow: 0 4px 10px rgba(8, 165, 255, 0.4) !important; /* SOMBRA CELESTE-AZUL */
}

body.modo-oscuro .contacto-mapa {
    filter: brightness(0.8) !important; /* Baja brillo del mapa para dark, opcional */
    box-shadow: 0 4px 15px rgba(8, 165, 255, 0.3) !important; /* SOMBRA CELESTE-AZUL */
}

body.modo-oscuro footer p {
    color: #ddd !important; /* Footer en pie.php */
}

/* BOTÓN DE TOGGLE MODO OSCURO */
.toggle-modo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
}