/* Estilos Base Divinos */
:root {
    --primary: #006994;
    --secondary: #00A5CF;
    --accent: #00C9B1;
    --dark: #0A2342;
    --light: #F7F9FC;
    --text: #333333;
    --gold: #FFD700;
    --deep-blue: #002366;
    --glow: 0 0 30px rgba(0, 201, 177, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 1. CORRECCIÓN STICKY FOOTER */
body {
    font-family: 'Playfair Display', serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex; /* Añadido */
    flex-direction: column; /* Añadido */
    min-height: 100vh; /* Añadido */
}

.main-wrapper {
    flex-grow: 1; /* Añadido: Empuja el footer hacia abajo */
}

/* Loader Oceánico */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.bubble-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 201, 177, 0.6);
    animation: float-up 4s infinite ease-in-out;
}

.bubble:nth-child(1) { width: 30px; height: 30px; left: 20px; top: 50px; animation-delay: 0s; }
.bubble:nth-child(2) { width: 50px; height: 50px; left: 60px; top: 30px; animation-delay: 0.5s; }
.bubble:nth-child(3) { width: 20px; height: 20px; left: 100px; top: 70px; animation-delay: 1s; }

.loader-text {
    color: var(--light);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 2s infinite ease-in-out;
}

/* Header de Contacto */
.contact-header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.contact-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}
.contact-header h1 span { color: var(--accent); }
.contact-header p {
    font-size: 1.2rem;
    color: var(--light);
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.water-effect-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 33, 102, 0) 0%, transparent 100%);
    z-index: 1;
}

/* Contenedor Principal */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 3rem;
    position: relative;
    z-index: 3;
    /* ESTA ES LA CORRECCIÓN CLAVE: */
    align-items: flex-start; /* Evita que los items se estiren */
}

/* Tarjeta de Contacto */
.contact-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 201, 177, 0.3);
}

.card-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent);
    animation: wave 3s linear infinite;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(0, 201, 177, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.info-item:hover .icon-circle {
    background: var(--accent);
    color: var(--dark);
    transform: scale(1.1);
}

.info-content { flex: 1; }
.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}
.info-content p, 
.info-content a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.info-content a:hover { color: var(--accent); }

/* Efectos Especiales */
.pulse-dot {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.ripple-effect {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.info-item:hover .ripple-effect { transform: scaleX(1); }

.wave-animation {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    animation: wave 1.5s infinite linear;
}

/* 2. ESTILOS NUEVOS PARA INFO EN TARJETA */
.info-subtext {
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 5px;
    line-height: 1.4;
    color: var(--light);
}

.info-item-reclamos .icon-circle { background: rgba(0, 201, 177, 0.2); }
.info-item-reclamos .icon-circle i { color: var(--accent); }
.info-item-reclamos h3 { color: var(--accent); }

/* 3. ESTILOS ACORDEÓN (REEMPLAZA .form-container) */
.form-container {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    /* Quitamos el fondo y estilos de tarjeta */
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

.accordion-toggle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 201, 177, 0.3);
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.accordion-toggle.active .accordion-icon { transform: rotate(180deg); }

/* Contenido del acordeón */
.accordion-content {
    max-height: 0; /* Inicia cerrado */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 20px 20px;
    margin-top: -10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

/* 4. ESTILOS IMAGEN Y FORMULARIO DENTRO DE ACORDEÓN */
.proceso-reclamos-img {
    padding: 2rem 1.5rem 0 1.5rem;
    position: relative;
    cursor: zoom-in;
}
.proceso-reclamos-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 201, 177, 0.2);
}

.proceso-reclamos-img::after {
    content: '\f00e  Click para ampliar'; /* Icono lupa */
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 25px; /* Ajustado al padding */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem; /* Padding para el formulario */
}

/* 5. ESTILOS FORMULARIO (Inputs, labels, etc.) */
.form-group { position: relative; }

.form-group.floating label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group.floating input:focus + label,
.form-group.floating input:not(:placeholder-shown) + label,
.form-group.floating textarea:focus + label,
.form-group.floating textarea:not(:placeholder-shown) + label {
    top: -0.8rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--accent);
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}
.underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .underline::after,
.form-group textarea:focus ~ .underline::after {
    width: 100%;
}

input, textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-size: 1rem;
    outline: none;
}
textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--light);
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.submit-btn:hover {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 201, 177, 0.5);
}

.liquid-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.submit-btn:hover .liquid-effect { transform: translateY(0); }

/* Mapa 3D */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 5rem 0;
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(120%) brightness(90%);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 33, 102, 0.3) 0%, transparent 50%, rgba(0, 33, 102, 0.3) 100%);
    pointer-events: none;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
    font-size: 2rem;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    z-index: 1;
}

/* === FOOTER UNIFICADO === */
.news-footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0 1rem 0;
    position: relative;
    min-height: 120px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120px;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 0 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.social-icon {
    color: white !important; /* Forzado */
    font-size: 2rem !important; /* Forzado */
    background: rgba(0,201,177,0.13) !important; /* Forzado */
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.social-icon:hover {
    color: var(--accent) !important; /* Forzado */
    background: rgba(0,201,177,0.22) !important; /* Forzado */
    transform: translateY(-3px) scale(1.15);
}
.news-footer .social-links a {
    color: white !important;
    text-decoration: none !important;
    border: none;
    box-shadow: none;
}
.footer-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.85;
    width: 100%;
    text-align: center;
}

@media (max-width: 600px) {
    .news-footer { padding: 1.2rem 0 0.5rem 0; }
    .footer-content { font-size: 0.95rem; gap: 0.7rem; padding: 0 0.5rem; }
    .social-links { gap: 1rem; }
    .social-icon { font-size: 1.3rem !important; padding: 0.35rem; } /* Ajustado */
}

/* Notificación */
.notification-bubble {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    background: var(--accent);
    color: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.notification-bubble.error {
    background: #E74C3C; /* Rojo para error */
    color: var(--light);
}
.notification-bubble.show { bottom: 2rem; }

/* 6. ESTILOS LIGHTBOX (ZOOM) */
.lightbox-reclamos {
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-reclamos.show {
    opacity: 1;
    visibility: visible;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
}
.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.lightbox-reclamos.show .lightbox-content {
    transform: scale(1);
}

/* 7. RESPONSIVE (MOBILE-FIRST) */
/* Por defecto (móvil): apilados */
.contact-container {
    flex-direction: column;
    padding: 0 1rem;
    align-items: center; /* Centra los items en móvil */
}
.contact-card,
.form-container {
    width: 100%;
    max-width: 100%; /* Ocupa todo el ancho en móvil */
}

/* Escritorio: (min-width: 769px) */
@media (min-width: 769px) {
    .contact-container {
        flex-direction: row; /* Lado a lado en escritorio */
        padding: 0 2rem;
        gap: 3rem;
        align-items: flex-start; /* ALINEA ARRIBA */
    }
    
    .contact-card,
    .form-container {
        flex: 1;
        min-width: 300px;
        max-width: 450px;
        width: auto; /* Resetea el 100% de móvil */
    }

    .contact-header h1 { font-size: 3.5rem; }
    .map-container { height: 400px; }
}

/* Ajustes menores para tablets */
@media (max-width: 768px) {
    .contact-header h1 { font-size: 2.5rem; }
    .map-container { height: 300px; }
}

/* Partículas y Botón Home (sin cambios) */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: drift 20s infinite linear;
}
.home-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--light);
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}
.home-btn:hover {
    background: var(--accent);
    color: var(--dark);
    box-shadow: var(--glow);
}
.home-btn i { font-size: 1.2rem; }
.home-btn .liquid-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.home-btn:hover .liquid-effect { transform: translateY(0); }
.home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent);
    animation: wave 3s linear infinite;
    z-index: -1;
}
#particles { z-index: 0; }

/* Animaciones */
@keyframes float-up {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
    100% { transform: translateY(-40px) scale(1); opacity: 0; }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes wave {
    0% { transform: scaleX(0); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}
@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
@keyframes drift {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { opacity: 0.7; }
    100% { transform: translate(-100vw, 100vh); opacity: 0; }
}
/* ========================================= */
/* === BLOQUE MAESTRO 2.0 (FLUIDO & RESPONSIVE) === */
/* ========================================= */

/* 1. Configuración de Texto (Se adapta automáticamente) */
body, p, span, a, li, input, textarea, label {
    font-family: 'Roboto', sans-serif; 
    font-weight: 400;
    line-height: 1.6;
    color: var(--light);
}

/* 2. Títulos Inteligentes (Usa clamp para escalar suavemente) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Evita que palabras largas rompan el celular */
    word-wrap: break-word; 
    hyphens: auto;
}

/* TAMAÑOS: (Mínimo móvil, Ideal variable, Máximo escritorio) */
h1 { 
    font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem) !important; 
}

h2 { 
    font-size: clamp(1.8rem, 4vw + 1rem, 2.5rem) !important; 
    color: var(--light);
}

h3 { 
    font-size: clamp(1.3rem, 3vw + 1rem, 1.8rem) !important; 
}

/* 3. SALVAVIDAS MÓVIL (Evita el desastre lateral) */
html, body {
    max-width: 100vw;
    overflow-x: hidden; /* Bloquea el scroll horizontal indeseado */
}

img, video, iframe, .map-container {
    max-width: 100% !important; /* Nada puede ser más ancho que la pantalla */
    height: 300 !important;
}

/* 4. Ajustes Específicos para Celulares ( < 768px ) */
@media (max-width: 768px) {
    /* Reduce el relleno lateral excesivo */
    .contact-header, .about-header, .exp-header, .news-header, .lab-header {
        padding: 3rem 1rem !important; 
    }
    
    /* Asegura que los contenedores no se peguen a los bordes */
    .main-container, .contact-container, .about-container, .section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
    }

    /* Fuerza que las cajas se apilen verticalmente */
    .contact-container, .about-card, .news-container {
        flex-direction: column !important;
        display: flex !important;
    }
}

/* ========================================= */
/* === FIN DEL BLOQUE MAESTRO 2.0 === */
/* ========================================= */