/* Paleta de Colores Corporativa */
:root {
    --olive-dark: #1b4332;       
    --gold-ochre: #c9a054;       
    --cream-bg: #fdfbf7;         
    --cream-darker: #f4f1ea;     
    --text-main: #2b3a32;        
    --white: #ffffff;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reseteo Global */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif; 
    background-color: var(--cream-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

p, input, button, span, .btn, .whatsapp-tooltip, .badge {
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Estructura de Secciones Completas */
.fullscreen-section {
    width: 100vw;
    min-height: 100vh; 
    padding: 120px 0; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1350px; 
    margin: 0 auto;
}

.small-container {
    max-width: 750px; 
    width: 100%;
}

/* Barra de Navegación */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 4px 25px rgba(27, 67, 50, 0.05);
    border-bottom: 4px solid var(--gold-ochre);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 65px; 
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 17px; 
    transition: var(--transition-smooth);
}

.nav-links a:hover { color: var(--gold-ochre); }

.btn-nav {
    background-color: var(--olive-dark);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 4px;
}

/* Botón de WhatsApp Flotante */
.whatsapp-floating {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: var(--white);
    width: 70px; 
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    text-decoration: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 85px;
    background-color: var(--olive-dark);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    font-weight: bold;
    border-bottom: 2px solid var(--gold-ochre);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.whatsapp-floating:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes shakeCall {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.attention-shake { animation: shakeCall 0.6s ease-in-out; }

/* Hero / Sección de Inicio */
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.badge {
    background-color: rgba(27, 67, 50, 0.07);
    color: var(--olive-dark);
    padding: 8px 20px;
    font-size: 14px; 
    font-weight: 700;
    letter-spacing: 1.5px;
    border-left: 4px solid var(--gold-ochre);
    margin-bottom: 15px;
    display: inline-block;
}

.hero-text h1 {
    font-size: 72px; 
    color: var(--olive-dark);
    line-height: 1.1;
    margin-bottom: 15px;
}

.motto-pills {
    font-size: 24px; 
    color: var(--gold-ochre);
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.motto-pills span { color: var(--olive-dark); }
.hero-desc { font-size: 19px; margin-bottom: 35px; color: #3d4a41; max-width: 650px; }

/* Cuadro temporal 48 horas */
.time-badge-card {
    background-color: var(--olive-dark);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    border-bottom: 5px solid var(--gold-ochre);
    max-width: 600px;
}

.time-icon { font-size: 48px; color: var(--gold-ochre); }
.time-text h3 { font-size: 15px; color: var(--gold-ochre); letter-spacing: 3px; margin-bottom: 4px; }
.time-text p { font-size: 18px; }
.time-text strong { font-size: 26px; color: var(--gold-ochre); }

.btn {
    padding: 16px 36px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    font-size: 17px; 
    display: inline-block;
    transition: var(--transition-smooth);
}
.btn-primary { background-color: var(--gold-ochre); color: var(--white); box-shadow: 0 4px 15px rgba(201, 160, 84, 0.3); }
.btn-primary:hover { background-color: var(--olive-dark); transform: translateY(-2px); }

/* Logo Central Adaptado en el Hero (Estructura de Arco removida) */
.brand-artwork { display: flex; align-items: center; justify-content: center; }

.main-logo-box {
    width: 320px; height: 320px; 
    border: 4px solid var(--gold-ochre);
    border-radius: 50% 50% 0 0;
    background-color: var(--white);
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 25px;
    box-shadow: 0 15px 45px rgba(27, 67, 50, 0.05);
}

.hero-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

/* Encabezados de Sección */
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge { color: var(--gold-ochre); font-weight: bold; letter-spacing: 3px; font-size: 15px; margin-bottom: 10px; display: inline-block; }
.section-header h2 { font-size: 46px; color: var(--olive-dark); }
.section-header p { font-size: 18px; margin-top: 10px; color: #555; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; width: 100%; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; width: 100%; }

/* Acreditación */
.official-seal {
    background-color: var(--white);
    border: 2px solid var(--olive-dark);
    padding: 50px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.official-seal::after {
    content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px dashed var(--gold-ochre);
}
.seal-icon { font-size: 60px; color: var(--olive-dark); margin-bottom: 20px; }
.official-seal h3 { font-size: 22px; }
.official-seal p { font-size: 16px; color: #444; }
.seal-divider { border: 0; height: 1px; background: var(--gold-ochre); margin: 25px 0; }
.official-seal span { font-size: 14px; font-weight: bold; }

.acred-text h2 { font-size: 38px; color: var(--olive-dark); margin-bottom: 25px; }
.bullet-list { list-style: none; margin: 30px 0; }
.bullet-list li { font-size: 19px; margin-bottom: 18px; display: flex; align-items: center; gap: 15px; }
.bullet-list i { color: var(--gold-ochre); font-size: 22px; }
.modality-box { background-color: var(--white); padding: 20px 25px; border-left: 5px solid var(--olive-dark); display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 17px; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }

/* Servicios */
.card-official-service {
    background-color: var(--white);
    padding: 35px 25px; 
    text-align: center;
    border-top: 5px solid var(--olive-dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}
.card-official-service:hover { transform: translateY(-5px); border-top-color: var(--gold-ochre); box-shadow: 0 15px 35px rgba(27, 67, 50, 0.1); }
.service-icon-wrapper { width: 65px; height: 65px; background-color: rgba(201, 160, 84, 0.1); color: var(--olive-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 20px auto; }
.card-official-service h3 { font-size: 15px; color: var(--olive-dark); margin-bottom: 15px; min-height: 44px; line-height: 1.4; letter-spacing: 0.5px; }
.card-official-service p { font-size: 14px; color: #555; line-height: 1.5; }

/* Galería */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.gallery-item { position: relative; border-radius: 6px; overflow: hidden; height: 380px; background-color: #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(27, 67, 50, 0.9), transparent); display: flex; align-items: flex-end; padding: 25px; opacity: 0; transition: var(--transition-smooth); }
.gallery-overlay p { color: var(--white); font-weight: bold; font-size: 20px; letter-spacing: 0.5px; }
.gallery-item:hover .gallery-img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Formulario */
.form-container-box { background-color: var(--white); padding: 55px; border-radius: 8px; box-shadow: 0 15px 45px rgba(0,0,0,0.03); width: 100%; border: 1px solid #f0ede6; }
.form-container-box h2 { font-size: 36px; color: var(--olive-dark); margin-bottom: 8px; }
.form-subtitle { color: var(--gold-ochre); font-weight: bold; margin-bottom: 35px; font-size: 17px; }
.legal-form .form-group { margin-bottom: 25px; text-align: left; }
.legal-form label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 16px; color: var(--olive-dark); }
.legal-form input { width: 100%; padding: 15px 18px; font-size: 16px; border: 1px solid #dcdad4; border-radius: 4px; background-color: var(--cream-bg); transition: var(--transition-smooth); }
.legal-form input:focus { border-color: var(--olive-dark); background-color: var(--white); box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.08); outline: none; }
.btn-submit { background-color: var(--olive-dark); color: var(--white); padding: 18px; font-size: 18px; width: 100%; margin-top: 15px; cursor: pointer; }
.btn-submit:hover { background-color: var(--gold-ochre); }
#label-terms { display: inline; font-weight: normal; font-size: 14px; color: #555; }
.response-box { margin-top: 20px; padding: 15px; font-size: 16px; background-color: #e8f5e9; color: var(--olive-dark); font-weight: bold; }

/* Footer */
.official-footer { background-color: var(--olive-dark); color: var(--white); padding: 60px 0; border-top: 6px solid var(--gold-ochre); width: 100vw; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-brand-side h3 { font-size: 28px; color: var(--gold-ochre); margin-bottom: 10px; }
.footer-slogan { font-style: italic; max-width: 500px; opacity: 0.8; font-size: 16px; line-height: 1.5; }
.footer-contacts-side { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer-contacts-side span { display: flex; align-items: center; gap: 12px; }
.footer-contacts-side i { color: var(--gold-ochre); font-size: 18px; }

/* ==========================================================================
   SISTEMA DE MEDIA QUERIES ULTRA RESPONSIVO RECALCULADO
   ========================================================================== */

@media (max-height: 850px) and (min-width: 769px) {
    .fullscreen-section { padding: 80px 0; }
    .hero-text h1 { font-size: 56px; }
    .gallery-item { height: 300px; }
    .main-logo-box { width: 260px; height: 260px; }
}

@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .hero-text h1 { font-size: 56px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item { height: 320px; }
    .main-logo-box { width: 260px; height: 260px; }
}

@media (max-width: 768px) {
    .fullscreen-section {
        min-height: auto; 
        padding: 80px 0;
    }
    
    .hero-container, .grid-2, .grid-5, .gallery-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }

    .nav-links { display: none; } 
    
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 44px; }
    .motto-pills { font-size: 20px; }
    .hero-desc { font-size: 17px; margin: 0 auto 30px auto; }
    
    .hero-image {
        order: -1; 
        margin-bottom: 20px;
    }
    
    .main-logo-box { width: 220px; height: 220px; padding: 15px; } 
    .time-badge-card { text-align: left; padding: 20px; }
    .hero-actions { justify-content: center; }
    
    .acred-text h2 { font-size: 32px; text-align: center; }
    .official-seal { padding: 35px 20px; }
    
    .gallery-item { height: 260px; }
    .form-container-box { padding: 35px 20px; }
    .form-container-box h2 { font-size: 28px; }
    
    .footer-grid { flex-direction: column; text-align: center; gap: 30px; }
    .footer-contacts-side { align-items: center; }
}