/* ================= VARIABLES ================= */
:root {
    --color-dark-swamp: #1A3626;
    --color-leaf: #2EA053;
    --color-leaf-hover: #237A3F;
    --color-sand: #E8D8A6;
    --color-light: #F4F7F5;
    --color-text: #1F2924;
    --color-gray: #6B7280;
    
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================= RESET & CORE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-main); color: var(--color-text); }
body { background-color: #ffffff; line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--color-light); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* ================= PRELOADER ================= */
#preloader { position: fixed; top:0; left:0; width: 100%; height: 100vh; background: var(--color-dark-swamp); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader-leaf { width: 50px; height: 50px; border-radius: 0 50% 50% 50%; background: var(--color-leaf); transform: rotate(45deg); animation: pulse 1.5s infinite ease-in-out; }
@keyframes pulse { 0% { transform: scale(0.8) rotate(45deg); opacity: 0.5;} 50% { transform: scale(1.2) rotate(45deg); opacity: 1;} 100% { transform: scale(0.8) rotate(45deg); opacity: 0.5;} }

/* ================= TIPOGRAFÍA & BOTONES ================= */
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--color-dark-swamp); }
h1 span { color: var(--color-leaf); }
p { margin-bottom: 1rem; color: var(--color-gray); }

.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 30px; text-decoration: none; font-weight: 600; transition: var(--transition-fast); cursor: pointer; border: none; }
.btn--primary { background: var(--color-leaf); color: white; }
.btn--primary:hover { background: var(--color-leaf-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(46, 160, 83, 0.3); }
.btn--secondary { background: transparent; border: 2px solid white; color: white; }
.btn--secondary:hover { background: white; color: var(--color-dark-swamp); }

.badge { display: inline-block; background: var(--color-sand); color: var(--color-dark-swamp); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: bold; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }

/* ================= NAVBAR (CORREGIDO PARA CERO HUECOS BLANCOS) ================= */
.navbar { 
    position: fixed; 
    top: 35px; /* Empieza debajo del topbar */
    width: 100%; 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    transition: top 0.4s ease, transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease; 
}
.navbar__logo { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; color: var(--color-dark-swamp); }
.navbar__links { display: flex; gap: 2rem; list-style: none; }
.navbar__links a { text-decoration: none; color: var(--color-text); font-weight: 500; transition: var(--transition-fast); }
.navbar__links a:hover, .navbar__links a.active { color: var(--color-leaf); }
.navbar__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.navbar__toggle span { width: 25px; height: 3px; background: var(--color-dark-swamp); transition: 0.3s; }

/* ================= HERO CAROUSEL ================= */
.hero { position: relative; height: 100vh; overflow: hidden; background: var(--color-dark-swamp); }
.hero__carousel { height: 100%; width: 100%; position: relative; }
.hero__slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; }
.hero__slide.active { opacity: 1; z-index: 1; }
.hero__content { position: relative; z-index: 2; color: white; max-width: 800px; transform: translateY(30px); opacity: 0; transition: all 1s ease 0.5s; }
.hero__slide.active .hero__content { transform: translateY(0); opacity: 1; }
.hero__content h1 { color: white; font-size: clamp(2.5rem, 5vw, 4rem); }
.hero__content p { color: #e0e0e0; font-size: 1.2rem; margin-bottom: 2rem; }

.hero__control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; font-size: 2rem; padding: 1rem; cursor: pointer; z-index: 10; border-radius: 50%; width: 60px; height: 60px; backdrop-filter: blur(5px); transition: var(--transition-fast); }
.hero__control:hover { background: var(--color-leaf); }
.hero__control--prev { left: 20px; }
.hero__control--next { right: 20px; }

/* ================= SECCIONES INTERIORES ================= */
.about__grid, .values__grid, .tips__grid, .footer__grid { display: grid; gap: 2rem; }
.about__grid { grid-template-columns: 1fr 1fr; align-items: center; }
.about__stats { display: flex; gap: 2rem; }
.stat-card h3 { font-size: 3rem; color: var(--color-leaf); margin-bottom: 0; }

.values__grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.value-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; transition: var(--transition-smooth); }
.value-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--color-leaf); }
.value-icon { font-size: 3rem; margin-bottom: 1rem; }

.tips__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tip-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: var(--transition-fast); }
.tip-card:hover { transform: scale(1.02); }
.tip-card__media { position: relative; height: 200px; }
.tip-card__media img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,0.9); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--color-leaf); font-size: 1.5rem; cursor: pointer; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
.tip-card__body { padding: 1.5rem; }
.link-arrow { color: var(--color-leaf); text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 5px; }
.link-arrow::after { content: '→'; transition: var(--transition-fast); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ================= FOOTER ================= */
.footer { background: var(--color-dark-swamp); color: white; padding: 4rem 0 0 0; }
.footer__grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 3rem; }
.footer h3, .footer h4 { color: white; margin-bottom: 1.5rem; }
.footer p { color: #a0aab2; }
.footer__links ul { list-style: none; }
.footer__links a { color: #a0aab2; text-decoration: none; transition: var(--transition-fast); }
.footer__links a:hover { color: var(--color-leaf); padding-left: 5px; }
.footer__bottom { background: #112419; padding: 1.5rem; text-align: center; color: #a0aab2; font-size: 0.9rem; }

/* ================= ANIMACIONES SCROLL (Reveal) ================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVE (LIMPIO SIN CONFLICTOS) ================= */
@media (max-width: 768px) {
    .about__grid { grid-template-columns: 1fr; }
    .hero__control { display: none; }
}


/* ================= SECCIÓN CONTACTO ================= */
.contact-hero {
    background: linear-gradient(rgba(26, 54, 38, 0.85), rgba(26, 54, 38, 0.85)), 
                url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem 0;
    color: white;
    text-align: center;
}

.contact-hero h1 { color: white; margin-bottom: 1rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-icon {
    font-size: 1.5rem;
    background: var(--color-light);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 5px solid var(--color-leaf);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-dark-swamp); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-leaf);
    box-shadow: 0 0 0 3px rgba(46, 160, 83, 0.1);
}

.btn--block { width: 100%; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 1.5rem; }
}


/* ================= TOPBAR ================= */
.topbar { background: var(--color-dark-swamp); color: #a0aab2; font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.topbar__content { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1200px; margin: 0 auto; }
.topbar__info { display: flex; gap: 1.5rem; }
.topbar__social a { color: #a0aab2; text-decoration: none; margin-left: 10px; transition: var(--transition-fast); }
.topbar__social a:hover { color: var(--color-leaf); }

/* (ELIMINADO: .navbar { top: 35px; } Aquí estaba el error del hueco en blanco. Ya está arriba corregido) */

/* ================= DROPDOWN (Menú Desplegable) ================= */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: white; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; list-style: none; padding: 0.5rem 0; z-index: 1000; border-top: 3px solid var(--color-leaf); }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 0.8rem 1.5rem; color: var(--color-text); font-weight: 500; border-bottom: 1px solid #f0f0f0; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--color-light); color: var(--color-leaf); padding-left: 2rem; }

/* ================= REDUCCIÓN DE ESPACIOS BLANCOS ================= */
.section { padding: 3.5rem 0; }

/* ================= DIAGRAMA DE FLUJO (Metodología) ================= */
.flowchart {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 2rem;
    z-index: 2;
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.flow-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 25px rgba(26, 54, 38, 0.1);
    border: 3px solid var(--color-light);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    position: relative;
    z-index: 5;
}

.flow-step:hover .flow-icon {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--color-leaf);
}

.flow-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.flow-step p { font-size: 0.9rem; color: var(--color-gray); line-height: 1.4; }

/* Conectores SVG */
.flow-connector {
    flex: 0.5;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.flow-connector svg {
    width: 100%;
    height: 50px;
    overflow: visible;
}

/* Animación de flujo continuo en las líneas */
.dashed-line {
    stroke-dashoffset: 100;
    animation: dash-flow 3s linear infinite;
}

@keyframes dash-flow {
    to { stroke-dashoffset: 0; }
}

/* ================= RESPONSIVE DIAGRAMA (Mobile First estricto) ================= */
@media (max-width: 900px) {
    .flowchart {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .flow-step { width: 100%; max-width: 300px; }
    
    .flow-connector {
        height: 40px;
        flex: none;
        width: 40px;
        transform: rotate(90deg);
    }
}

/* ================= WHATSAPP FLOTANTE ================= */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: var(--transition-fast); animation: bounce-wa 2s infinite ease-in-out; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #1ebe5d; }
@keyframes bounce-wa { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ================= RESPONSIVE AJUSTES SECUNDARIOS ================= */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

/* Correcciones del Topbar */
.topbar__info { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar__social { display: flex; gap: 12px; align-items: center; }

/* Inyección de Vida (Animación de la Brisa) */
@keyframes sway {
    0% { transform: rotate(0deg) translateX(0px); }
    50% { transform: rotate(8deg) translateX(10px); }
    100% { transform: rotate(0deg) translateX(0px); }
}

/* Modificamos el fondo claro para quitar el "exceso de blanco" */
.bg-light { 
    position: relative; 
    background-color: #f2f7f4; 
    overflow: hidden; 
    z-index: 1;
}

/* Hoja decorativa gigante animada en el fondo */
.bg-light::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232EA053' opacity='0.03'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66l.95-2.3c.48.17.96.3 1.34.3C12 20 19 14 20 8h-3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    animation: sway 7s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.bg-light::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A3626' opacity='0.02'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66l.95-2.3c.48.17.96.3 1.34.3C12 20 19 14 20 8h-3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    animation: sway 9s ease-in-out infinite reverse;
    z-index: -1;
    pointer-events: none;
}

.workflow-card { z-index: 2; background: #ffffff; }

/* ================= FONDOS: SILUETAS Y ELEMENTOS VIVOS ================= */
.bg-silhouettes {
    position: relative;
    z-index: 1;
}

.bg-silhouettes::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -50px;
    width: 250px;
    height: 250px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A3626' opacity='0.04'%3E%3Cpath d='M21 3C14 3 8 7 3 21c3-6 8-10 14-11v-4c0-2 2-3 4-3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
    animation: sway 8s ease-in-out infinite;
}

.bg-floating-elements { position: relative; overflow: hidden; }
.float-icon { position: absolute; font-size: 3rem; opacity: 0.1; filter: grayscale(100%) sepia(100%) hue-rotate(80deg); z-index: 0; pointer-events: none; }
.fi-1 { top: 10%; left: 5%; animation: floatUp 15s linear infinite; }
.fi-2 { top: 50%; right: 5%; animation: floatUp 20s linear infinite 5s; font-size: 4rem; }
.fi-3 { bottom: 10%; left: 15%; animation: floatUp 18s linear infinite 2s; font-size: 2.5rem; }

@keyframes floatUp {
    0% { transform: translateY(100px) rotate(0deg); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-300px) rotate(180deg); opacity: 0; }
}

.tips__grid, .section-header { position: relative; z-index: 2; }

/* ================= ANIMACIÓN BOTÓN WHATSAPP ================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    height: 60px;
    width: 60px; 
    border-radius: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    overflow: hidden; 
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

.wa-icon-wrapper {
    min-width: 60px; 
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bounce-wa-icon 2s infinite ease-in-out;
}

.wa-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.4s ease;
    padding-right: 20px;
}

.whatsapp-float:hover {
    width: 250px; 
    background-color: #1ebe5d;
}

.whatsapp-float:hover .wa-icon-wrapper {
    animation: none; 
}

.whatsapp-float:hover .wa-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes bounce-wa-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ================= FLECHA VOLVER ARRIBA ================= */
.back-to-top { position: fixed; bottom: 30px; left: 30px; background: var(--color-dark-swamp); width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-leaf); transform: translateY(-5px); }

/* ================= WHATSAPP EXPANSIBLE (SIN OVERLAP) ================= */
.wa-icon-wrapper img { 
    width: 35px; 
    height: 35px; 
    object-fit: contain; 
}

@keyframes pulse-wa { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.1); } 
}

/* ================= BOTÓN CLARO/OSCURO ================= */
.theme-btn { background: transparent; border: none; cursor: pointer; padding: 5px; outline: none; transition: transform 0.3s ease; display: flex; justify-content: center; align-items: center; }
.theme-btn:hover { transform: scale(1.1); }

/* ================= COLORES MODO OSCURO ================= */
[data-theme="dark"] { --color-light: #121A16; --color-text: #E8E8E8; --color-gray: #A0AAB2; }
[data-theme="dark"] body { background-color: #0A0F0C; }
[data-theme="dark"] .bg-light { background-color: var(--color-light); }
[data-theme="dark"] .workflow-card, [data-theme="dark"] .value-card, [data-theme="dark"] .tip-card { background: #1A261F; color: var(--color-text); border: 1px solid rgba(46, 160, 83, 0.3); }
[data-theme="dark"] .navbar { background: rgba(10, 15, 12, 0.95) !important; border-bottom: 1px solid #1A3626 !important; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #E8D8A6; }
[data-theme="dark"] p { color: #C0C8CF; }
[data-theme="dark"] .flow-icon { background: #1A261F; }
[data-theme="dark"] .tip-card__body { background: #1A261F; }

/* ================= ANIMACIÓN DEL SMART NAVBAR (LA CORRECCIÓN) ================= */
.navbar--hidden { transform: translateY(-100%) !important; }
/* Al scrollear, obligamos a que el top sea 0, tapando el hueco de la topbar */
.navbar--scrolled { top: 0 !important; background: rgba(255,255,255,0.98) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important; }

/* ================= MODO OSCURO (BLINDAJE DEFINITIVO) ================= */
[data-theme="dark"] body, 
[data-theme="dark"] main, 
[data-theme="dark"] section { 
    background-color: #0A0F0C !important; 
}

[data-theme="dark"] .bg-light { 
    background-color: #121A16 !important; 
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3 { 
    color: #E8D8A6 !important;
}

[data-theme="dark"] p, 
[data-theme="dark"] span:not(.wa-text):not(.badge) { 
    color: #C0C8CF !important;
}

[data-theme="dark"] .workflow-card, 
[data-theme="dark"] .value-card, 
[data-theme="dark"] .tip-card { 
    background-color: #1A261F !important; 
    border: 1px solid #2EA053 !important;
}

[data-theme="dark"] .topbar {
    background-color: #000000 !important;
}

/* ================= NOSOTROS: HERO ================= */
.about-page-hero {
    background: linear-gradient(rgba(26, 54, 38, 0.8), rgba(26, 54, 38, 0.9)), 
                url('https://images.unsplash.com/photo-1558904541-efa843a96f0f?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 12rem 0 6rem 0;
    color: white;
    text-align: center;
}
.about-page-hero h1 { color: white; font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }

/* ================= NOSOTROS: HISTORIA ================= */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-content p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.story-image { position: relative; }
.rounded-img { width: 100%; border-radius: 20px; object-fit: cover; height: 500px; }
.shadow-lg { box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* Sello de años de experiencia sobre la imagen */
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--color-leaf); color: white; padding: 2rem; border-radius: 50%; width: 140px; height: 140px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; box-shadow: 0 10px 20px rgba(46, 160, 83, 0.3); border: 5px solid white; }
.experience-badge .years { font-size: 3rem; font-weight: bold; line-height: 1; }
.experience-badge .text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* ================= NOSOTROS: MISIÓN Y VISIÓN ================= */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.mv-card { background: white; padding: 3rem; border-radius: 15px; border-top: 5px solid var(--color-leaf); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.mv-card:hover { transform: translateY(-5px); }
.mv-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }

/* ================= NOSOTROS: MÉTODOS DE PAGO ================= */
.payment-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.pay-badge { padding: 1rem 2rem; border-radius: 12px; font-weight: 900; font-size: 1.5rem; color: white; display: flex; align-items: center; justify-content: center; min-width: 150px; transition: transform 0.3s ease, box-shadow 0.3s ease; letter-spacing: 1px; }
.pay-badge:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* Colores Oficiales de Bancos Perú */
.yape { background-color: #742384; font-family: 'Arial Rounded MT Bold', Arial, sans-serif; text-transform: lowercase; font-style: italic; }
.plin { background-color: #00D8C8; font-family: 'Arial Rounded MT Bold', Arial, sans-serif; text-transform: lowercase; }
.bcp { background-color: #002A8D; color: #FF7B00; font-family: Arial, sans-serif; letter-spacing: -1px; }
.bcp span { color: white; }
.bbva { background-color: #072146; font-family: Arial, sans-serif; }
.interbank { background-color: #00A443; font-family: Arial, sans-serif; }

/* ================= DARK MODE EXTRAS ================= */
[data-theme="dark"] .mv-card { background: #1A261F; border-color: var(--color-leaf); }
[data-theme="dark"] .experience-badge { border-color: #121A16; }
[data-theme="dark"] .pay-badge { box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

/* ================= NOSOTROS: ALTO NIVEL ================= */
.about-hero-pro {
    background: linear-gradient(rgba(26, 54, 38, 0.9), rgba(26, 54, 38, 0.9)), 
                url('https://images.unsplash.com/photo-1558904541-efa843a96f0f?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    padding: 14rem 0 8rem 0;
    color: white;
    text-align: center;
}

.badge-pro {
    display: inline-block;
    border: 1px solid var(--color-leaf);
    color: var(--color-leaf);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.story-image-pro { position: relative; }
.story-image-pro img { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }

.exp-tag {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--color-dark-swamp);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 4px;
}
.exp-tag .number { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--color-leaf); }
.exp-tag .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }

/* Grid de Filosofía (Misión/Visión) */
.mv-grid-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.phi-card h3 { color: var(--color-leaf); font-size: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }

/* Ajustes Dark Mode */
[data-theme="dark"] .spiritual-nod { color: var(--color-sand); border-left-color: var(--color-sand); }
[data-theme="dark"] .phi-card { background: rgba(255,255,255,0.03); padding: 2rem; border-radius: 4px; }

/* Limpieza de la sección de pagos para tus PNG */
.payment-assets-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.asset-slot {
    width: 150px; 
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El mensaje espiritual ahora se ve más elegante */
.spiritual-nod {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(46, 160, 83, 0.05);
    border-left: 3px solid var(--color-leaf);
    border-radius: 0 10px 10px 0;
}

.spiritual-message {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(232, 216, 166, 0.1); 
    border-left: 2px solid var(--color-sand);
    font-style: italic;
    color: var(--color-dark-swamp);
}

.mv-card-pro { background: white; padding: 3rem; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: left; }
.mv-icon-pro { color: var(--color-leaf); margin-bottom: 1.5rem; }

.asset-slot img {
    max-width: 130px;
    height: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: 0.4s ease;
}

.asset-slot img:hover {
    filter: grayscale(0%) opacity(1);
}


/* ================= EL PARCHE MÓVIL DEFINITIVO (RESTAURADO) ================= */
@media (max-width: 900px) {
    /* 1. Forzamos a que el botón de menú SIEMPRE aparezca en móvil */
    .navbar__toggle { 
        display: flex !important; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer; 
        z-index: 2000; 
    }
    .navbar__toggle span { 
        width: 25px; height: 3px; background: var(--color-dark-swamp); transition: 0.3s; 
    }
    
    /* 2. Reparamos el panel del menú: Debe ser !important para anular el display:none viejo */
    .navbar__links {
        display: flex !important; 
        position: fixed;
        top: 0;
        right: -100%; /* Esconde el menú a la derecha fuera de la pantalla */
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    /* 3. Esta clase la activará JavaScript para deslizar el menú hacia adentro */
    .navbar__links.active {
        right: 0 !important;
    }

    /* 4. Ocultar la topbar en celular para ganar espacio y evitar el bug del hueco blanco */
    .hide-mobile { display: none !important; }
    .topbar { display: none !important; } 
    
    /* 5. Empujamos el navbar hasta el tope absoluto en celular */
    .navbar { top: 0 !important; padding: 1rem 5%; }
    
    /* 6. El dropdown se adapta al menú lateral */
    .dropdown-menu { 
        position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; 
        transform: none; display: none; padding-left: 0; text-align: center; background: transparent; 
    }
    .dropdown:hover .dropdown-menu { display: block; }
}