:root{
    --primary:#24463f;
    --primary-dark:#18322d;
    --secondary:#d9b46f;
    --background:#f8f5ef;
    --background-soft:#fbfaf7;
    --text:#24312d;
    --muted:#6f7a76;
    --white:#ffffff;
    --border:#e6ded2;
    --shadow:0 18px 45px rgba(0,0,0,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    color:var(--text);
    background:var(--background-soft);
    line-height:1.6;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:min(1160px, 92%);
    margin:0 auto;
}

/* HEADER */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(0,0,0,.06);
}

.header-container{
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.logo-link{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.site-logo{
    width:auto;
    max-height:54px;
    object-fit:contain;
}

.main-nav{
    display:flex;
    align-items:center;
    gap:24px;
    font-size:15px;
    font-weight:600;
    color:var(--primary);
}

.main-nav a{
    transition:.2s ease;
}

.main-nav a:hover{
    color:var(--secondary);
}

.nav-cta{
    padding:11px 18px;
    border-radius:999px;
    color:var(--white) !important;
    background:var(--primary);
}

.nav-cta:hover{
    background:var(--primary-dark);
}

.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    cursor:pointer;
}

.menu-toggle span{
    display:block;
    height:2px;
    width:26px;
    margin:6px auto;
    background:var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
}

/* BOTONES */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 24px;
    border-radius:999px;
    font-weight:700;
    border:1px solid transparent;
    cursor:pointer;
    transition:.2s ease;
}

.btn-primary{
    background:var(--primary);
    color:var(--white);
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

.btn-secondary{
    background:rgba(255,255,255,.85);
    color:var(--primary);
    border-color:rgba(255,255,255,.8);
}

.btn-secondary:hover{
    background:var(--white);
    transform:translateY(-2px);
}

/* HERO */

.hero{
    position:relative;
    min-height:760px;
    display:flex;
    align-items:center;
    overflow:hidden;
    background:
        linear-gradient(120deg, rgba(24,50,45,.88), rgba(36,70,63,.58)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.08);
}

.hero-container{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1.1fr .65fr;
    align-items:center;
    gap:70px;
    padding:120px 0;
}

.hero-content{
    color:var(--white);
}

.section-tag{
    display:inline-block;
    margin-bottom:18px;
    color:var(--secondary);
    font-size:13px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.section-tag.light{
    color:#f4d38c;
}

.hero h1{
    max-width:760px;
    font-size:clamp(42px, 6vw, 76px);
    line-height:1.02;
    margin-bottom:26px;
    letter-spacing:-.04em;
}

.hero p{
    max-width:680px;
    font-size:20px;
    color:rgba(255,255,255,.9);
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-top:36px;
}

.hero-card{
    background:rgba(255,255,255,.92);
    border-radius:28px;
    padding:38px;
    box-shadow:var(--shadow);
}

.hero-card span{
    display:block;
    margin-bottom:14px;
    color:var(--secondary);
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.hero-card h2{
    font-size:30px;
    line-height:1.2;
    color:var(--primary);
    margin-bottom:18px;
}

.hero-card p{
    color:var(--muted);
    font-size:17px;
}

/* SECCIONES GENERALES */

section{
    scroll-margin-top:100px;
}

.intro-section,
.courses-section,
.formats-section,
.team-section{
    padding:100px 0;
}

.two-columns{
    display:grid;
    grid-template-columns:.8fr 1fr;
    gap:70px;
    align-items:start;
}

.two-columns h2,
.section-header h2,
.formats-grid h2,
.method-title-card h2,
.proposal-box h2{
    font-size:clamp(32px, 4vw, 52px);
    line-height:1.12;
    color:var(--primary);
    letter-spacing:-.03em;
}

.two-columns p,
.section-header p,
.formats-grid p,
.proposal-box p{
    font-size:18px;
    color:var(--muted);
}

.section-header{
    max-width:840px;
    margin-bottom:52px;
}

.section-header.centered{
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

/* PROBLEMAS */

.problems-section{
    padding:110px 0;
    background:var(--primary);
    color:var(--white);
}

.problems-grid{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:60px;
    align-items:start;
}

.problems-content h2{
    font-size:clamp(32px, 4vw, 52px);
    line-height:1.12;
    margin-bottom:24px;
    letter-spacing:-.03em;
}

.problems-content p{
    color:rgba(255,255,255,.82);
    font-size:18px;
}

.problem-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.problem-list div{
    padding:18px 20px;
    border-radius:16px;
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.12);
    color:rgba(255,255,255,.94);
}

/* CURSOS */

.courses-section{
    background:var(--background-soft);
}

.cards-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.info-card{
    padding:32px;
    border-radius:24px;
    background:var(--white);
    box-shadow:0 12px 35px rgba(0,0,0,.05);
    border:1px solid var(--border);
}

.info-card h3{
    font-size:22px;
    line-height:1.25;
    color:var(--primary);
    margin-bottom:16px;
}

.info-card p{
    color:var(--muted);
}

/* FORMATOS */

.formats-section{
    background:var(--background);
}

.formats-grid{
    display:grid;
    grid-template-columns:.9fr 1fr;
    gap:70px;
    align-items:center;
}

.formats-list{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.formats-list span{
    padding:13px 18px;
    border-radius:999px;
    background:var(--white);
    border:1px solid var(--border);
    color:var(--primary);
    font-weight:700;
}

/* METODOLOGÍA */

.method-section{
    padding:110px 0;
    background:
        linear-gradient(120deg, rgba(24,50,45,.92), rgba(36,70,63,.74)),
        url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.method-grid{
    display:grid;
    grid-template-columns:.75fr 1fr;
    gap:60px;
}

.method-title-card{
    color:var(--white);
}

.method-title-card h2{
    color:var(--white);
    margin-bottom:22px;
}

.method-title-card p{
    color:rgba(255,255,255,.82);
    font-size:18px;
}

.method-items{
    display:grid;
    gap:20px;
}

.method-items article{
    padding:30px;
    border-radius:24px;
    background:rgba(255,255,255,.94);
}

.method-items h3{
    color:var(--primary);
    font-size:22px;
    margin-bottom:12px;
}

.method-items p{
    color:var(--muted);
}

/* QUIÉNES SOMOS */

.team-section{
    background:var(--background-soft);
}

.team-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
    align-items:start;
}

.team-card{
    height:100%;
    padding:38px;
    border-radius:28px;
    background:var(--white);
    border:1px solid var(--border);
    box-shadow:0 16px 42px rgba(0,0,0,.06);
}

.team-card-header{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:28px;
}

.team-photo-placeholder{
    width:76px;
    height:76px;
    flex:0 0 76px;
    border-radius:50%;
    background:linear-gradient(135deg, var(--primary), var(--primary-dark));
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--white);
    font-size:24px;
    font-weight:800;
    box-shadow:0 12px 28px rgba(36,70,63,.18);
}

.team-photo{
    width:76px;
    height:76px;
    flex:0 0 76px;
    border-radius:50%;
    object-fit:cover;
    box-shadow:0 12px 28px rgba(36,70,63,.18);
}

.team-card h3{
    color:var(--primary);
    font-size:28px;
    line-height:1.15;
    margin-bottom:6px;
}

.team-role{
    color:var(--secondary);
    font-weight:800;
    line-height:1.35;
}

.team-card p{
    color:var(--muted);
    margin-bottom:16px;
    font-size:16px;
}

.team-card p:last-child{
    margin-bottom:0;
}

/* PROPUESTA */

.proposal-section{
    padding:110px 0;
    background:var(--background);
}

.proposal-box{
    display:grid;
    grid-template-columns:.75fr 1fr;
    gap:60px;
    padding:58px;
    border-radius:34px;
    background:var(--white);
    box-shadow:var(--shadow);
    border:1px solid var(--border);
}

.proposal-box h2{
    margin-bottom:20px;
}

.proposal-form{
    display:grid;
    gap:18px;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.proposal-form label{
    display:grid;
    gap:8px;
    font-size:14px;
    font-weight:800;
    color:var(--primary);
}

.proposal-form input,
.proposal-form select,
.proposal-form textarea{
    width:100%;
    padding:14px 15px;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fff;
    color:var(--text);
    font:inherit;
    outline:none;
}

.proposal-form input:focus,
.proposal-form select:focus,
.proposal-form textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(36,70,63,.09);
}

.proposal-form textarea{
    resize:vertical;
}

.proposal-form label.checkbox-label{
    display:flex;
    align-items:center;
    gap:10px;
}

.proposal-form label.checkbox-label input{
    width:auto;
    margin:0;
    flex:0 0 auto;
}

.hidden-field{
    display:none;
}

.form-message{
    padding:14px 16px;
    border-radius:14px;
    font-weight:700;
}

.form-message.success{
    background:#eaf6ee;
    color:#1b6b38;
}

.form-message.error{
    background:#fdecea;
    color:#a3291d;
}

/* FOOTER */

.site-footer{
    padding:32px 0;
    background:var(--primary-dark);
    color:rgba(255,255,255,.82);
}

.footer-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    font-size:14px;
}

.footer-container a{
    color:var(--white);
    font-weight:700;
}

/* RESPONSIVE */

@media(max-width:1024px){
    .hero-container,
    .two-columns,
    .problems-grid,
    .formats-grid,
    .method-grid,
    .proposal-box{
        grid-template-columns:1fr;
    }

    .hero{
        min-height:auto;
    }

    .cards-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:860px){
    .header-container{
        height:70px;
    }

    .site-logo{
        max-height:42px;
    }

    .menu-toggle{
        display:block;
    }

    .main-nav{
        position:absolute;
        top:70px;
        left:0;
        right:0;
        display:none;
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        padding:18px 4%;
        background:var(--white);
        border-bottom:1px solid var(--border);
    }

    .main-nav.active{
        display:flex;
    }

    .main-nav a{
        width:100%;
        padding:14px 0;
    }

    .nav-cta{
        width:auto !important;
        padding:11px 18px !important;
        margin-top:8px;
    }

    .hero-container{
        padding:90px 0;
        gap:40px;
    }

    .hero p{
        font-size:18px;
    }

    .intro-section,
    .courses-section,
    .formats-section,
    .team-section,
    .proposal-section,
    .method-section,
    .problems-section{
        padding:72px 0;
    }

    .problem-list,
    .cards-grid,
    .team-grid,
    .form-row{
        grid-template-columns:1fr;
    }

    .proposal-box{
        padding:32px;
        border-radius:24px;
    }

    .footer-container{
        flex-direction:column;
        text-align:center;
    }
}

@media(max-width:520px){
    .hero-actions{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .hero-card,
    .team-card,
    .info-card,
    .method-items article{
        padding:26px;
    }

    .team-card-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .team-photo-placeholder,
    .team-photo{
        width:68px;
        height:68px;
        flex-basis:68px;
    }
}