/* ==========================================================================
   VARIABLES Y ESTILOS BASE (ESTÉTICA CLÍNICA MODERNA)
   ========================================================================== */
:root {
    --primary-dark: #2c2623;        /* Marrón topo / Carbón cálido */
    --accent-color: #8c6d62;        /* Tono terracota / arcilla suave */
    --accent-hover: #70554b;
    --bg-sand: #f8f6f2;             /* Arena muy suave / cálido */
    --bg-white: #ffffff;
    --text-main: #3d3734;
    --text-muted: #756d68;
    --border-color: #e6e1db;
    
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helpers Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-sand { background-color: var(--bg-sand); }
.bg-dark { background-color: var(--primary-dark); }
.text-white { color: #f8f6f2 !important; }
.text-center { text-align: center; }
.align-center { align-items: center; }

.grid {
    display: grid;
    gap: 40px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Tipografía de Sección */
.section-subtitle {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 12px;
}

.accent-text { color: var(--accent-color) !important; }

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-header {
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-header:hover { background-color: var(--accent-hover); }

.btn-full { width: 100%; margin-top: 20px; }

.cv-download-wrapper {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    padding: 12px 24px;
    font-size: 0.88rem;
}

.btn-outline-dark:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(44, 38, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.brand-logo span {
    color: var(--accent-color);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.menu-close-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    position: absolute;
    top: 25px;
    right: 30px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* ==========================================================================
   1. HERO (AJUSTADO PARA PANTALLAS PEQUEÑAS)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    padding: 120px 0 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    z-index: -1;
}

.hero-content {
    max-width: 850px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(140, 109, 98, 0.3);
    border: 1px solid var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e6e1db;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==========================================================================
   2. PILARES CLÍNICOS Y EXPERTICIA
   ========================================================================== */
.pilar-card {
    background-color: var(--bg-white);
    padding: 35px 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.pilar-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.pilar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.pilar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.experticia-box {
    margin-top: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 30px;
    border-radius: 6px;
}

.experticia-box h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.experticia-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   3. TRAYECTORIA Y ACADÉMICA
   ========================================================================== */
.trajectory-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cv-list {
    list-style: none;
    margin-top: 20px;
}

.cv-list li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.cv-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.cv-list strong { color: var(--primary-dark); }

.experience-card {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 50px 40px;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

.exp-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.exp-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.experience-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   4. MODALIDAD SESIONES
   ========================================================================== */
.sesion-info h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.sesion-info > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.sesion-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feat-check {
    background-color: rgba(140, 109, 98, 0.15);
    color: var(--accent-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-row strong {
    font-size: 0.95rem;
    color: var(--primary-dark);
    display: block;
}

.feature-row p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cta-inner-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.cta-inner-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.cta-inner-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==========================================================================
   5. CONTACTO
   ========================================================================== */
.contacto-lead {
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(248, 246, 242, 0.8);
    font-size: 1.05rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 24px;
    border-radius: 6px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-icon {
    color: #ffffff;
}

.contact-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #1e1917;
    color: rgba(248, 246, 242, 0.7);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.footer-brand span { color: var(--accent-color); font-weight: 300; }

.footer-col h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: var(--accent-color); }

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.gep-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

.gep-link:hover {
    color: #fff;
}

/* ==========================================================================
   ANIMACIONES REVEAL SCROLL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    
    .btn-header { display: none; }

    .menu-toggle { display: flex; }
    .menu-close-btn { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1050;
    }
    
    .nav-menu.active { right: 0; }
    
    .hero h1 { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* OPTIMIZACIÓN ESPECÍFICA PARA DISPOSITIVOS PEQUEÑOS (P. EJ. GALAXY A5 / < 480PX) */
@media (max-width: 480px) {
    .hero {
        padding: 100px 0 50px 0;
    }

    .hero-tag {
        font-size: 0.68rem;
        padding: 5px 12px;
        margin-bottom: 12px;
        letter-spacing: 1.5px;
    }

    .hero h1 {
        font-size: 1.7rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 0.88rem;
        margin-bottom: 22px;
        line-height: 1.5;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
}