/* Google Fonts cargado via <link> en cada HTML (no @import — bloquea render) */

:root {
    --guinda:          #56212f;
    --guinda-acento:   #9F2241;
    --arena:           #d6d1ca;
    --caramelo:        #c3b08f;
    --caramelo-hover:  #bc955b;
    --caramelo-oscuro: #6b5a44;
    --caramelo-claro:  #ddc8a4;
    --texto:           #333333;
    --texto-muted:     #555555;
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--texto);
    background: #fff;
    line-height: 1.6;
}

/* Focus visible for keyboard accessibility */
:focus-visible {
    outline: 2px solid var(--guinda-acento);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Header Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--arena);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--guinda);
}

nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--guinda);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--guinda-acento);
}

nav a.active {
    color: var(--guinda-acento);
    font-weight: 600;
    border-bottom: 2px solid var(--guinda-acento);
    padding-bottom: 2px;
}

/* Hamburger toggle button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: rgba(86, 33, 47, 0.08);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--guinda);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 40px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--guinda);
}

.hero p {
    font-size: 21px;
    color: var(--caramelo-oscuro);
    font-weight: 400;
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero CTAs */
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

a.btn-primary {
    display: inline-block;
    padding: 13px 30px;
    background: var(--guinda);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

a.btn-primary:hover {
    background: var(--guinda-acento);
    color: #fff;
    transform: translateY(-2px);
}

a.btn-secondary {
    display: inline-block;
    padding: 13px 30px;
    background: transparent;
    color: var(--guinda);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--guinda);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

a.btn-secondary:hover {
    background: var(--guinda);
    color: #fff;
    transform: translateY(-2px);
}

/* Main Areas Section */
.areas {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.area-card {
    background: #fff;
    border: 1px solid var(--arena);
    border-left: 4px solid var(--guinda);
    border-radius: 12px;
    padding: 32px 28px 44px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(86, 33, 47, 0.07);
    transition: transform 0.2s, box-shadow 0.2s, border-left-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.area-card::after {
    content: '→';
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-size: 18px;
    color: var(--arena);
    transition: color 0.2s, transform 0.2s;
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(86, 33, 47, 0.14);
    border-left-color: var(--guinda-acento);
}

.area-card:hover::after {
    color: var(--guinda-acento);
    transform: translateX(4px);
}

.area-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--guinda);
}

.area-card p {
    font-size: 14px;
    color: var(--texto-muted);
    font-weight: 400;
    line-height: 1.5;
}

/* Leadership Section */
.leadership {
    background: var(--arena);
    padding: 100px 40px;
    margin-top: 100px;
}

.leadership-container {
    max-width: 1000px;
    margin: 0 auto;
}

.leadership h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--guinda);
}

.leaders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.leader {
    text-align: center;
}

.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--caramelo);
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--guinda-acento);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--guinda);
}

.leader p {
    font-size: 14px;
    color: var(--texto-muted);
    font-weight: 400;
    line-height: 1.3;
}

/* Footer */
footer {
    background: var(--guinda);
    padding: 60px 40px 40px;
    margin-top: 100px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-content p {
    font-size: 14px;
    color: var(--caramelo-claro);
    margin-bottom: 8px;
}

.social-links {
    margin: 30px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--guinda-acento);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--caramelo-hover);
}

.copyright {
    margin-top: 40px;
    font-size: 12px;
    color: var(--caramelo);
}

/* Content Section (for inner pages) */
.content-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 40px;
}

.content-section h1 {
    font-size: 48px;
    font-weight: 600;
    color: var(--guinda);
    margin-bottom: 40px;
    text-align: center;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--guinda);
    margin-top: 60px;
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--guinda);
    margin-top: 40px;
    margin-bottom: 15px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--texto);
    margin-bottom: 20px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--texto);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.content-section li:before {
    content: "•";
    color: var(--guinda-acento);
    font-weight: bold;
    position: absolute;
    left: 10px;
}

/* Video Grid for CTE */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: var(--arena);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(86, 33, 47, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--guinda);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 14px;
    color: var(--texto-muted);
    line-height: 1.5;
}

/* Responsive — Mobile First */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
    }

    nav {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 12px;
        border-top: 1px solid #f0ede8;
        margin-top: 12px;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 14px 12px;
        border-bottom: 1px solid #f0ede8;
        font-size: 15px;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .areas {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .content-section {
        padding: 0 20px;
    }

    .content-section h1 {
        font-size: 32px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}
