@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

:root {
    --primary: #83E4D1;
    --primary-dark: #5ac2af;
    --accent: #ff9f1c;
    --accent-hover: #e38a15;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-main: #f4f6f9;
    --card-bg: #ffffff;
    --surface: #ffffff;
    --bg: #f4f6f9;
    --text: #2d3436;
    --muted: #636e72;
    --border: #dfe6e9;
    --teal: #83E4D1;
    --teal-dark: #5ac2af;
    --orange: #ff9f1c;
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, .05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, .12);
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    margin: 0;
    font-family: 'Nunito', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    letter-spacing: .5px;
}

main {
    flex: 1;
}

/* Base layout styles are imported globally */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-section {
    text-align: center;
    background: white;
    padding: 50px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 8px solid var(--accent);
}

.hero-title {
    font-size: 38px;
    color: #111;
    margin: 0 0 15px 0;
    border: none;
}

.hero-title:hover {
    cursor: pointer;
    color: orange;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.col-span-2 {
    grid-column: 1 / -1;
}

h2 {
    color: var(--accent);
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    font-size: 24px;
}

.historia {
    font-size: 20px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card p {
    font-size: 20px;
    color: var(--text-light);
}

.card h2 {
    font-size: 35px;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 17px;
    color: var(--text-light);
}

.custom-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
}

.check-list li::before {
    content: "";
}

.team-list {
    list-style: none;
    padding: 0;
}

.team-list li {
    background: #f8f9fa;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.alert-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.alert-box p {
    margin: 0;
    color: #856404;
}

/* ===========================
   ABOUT HERO
=========================== */
.about-hero {
    text-align: center;
    background: var(--surface);
    border-radius: var(--accent);
    padding: 64px 32px 48px;
    border-top: 6px solid var(--accent);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(255, 159, 28, .08) 0%, transparent 65%);
    pointer-events: none;
}

.about-hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.about-hero-title h1 {
    font-size: 58px;
    margin: 0;
    color: var(--text);
}

.about-hero-logo {
    height: 170px;
    width: auto;
    object-fit: contain;
}

.highlight {
    background: linear-gradient(135deg, var(--teal-dark), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-sub {
    font-size: 24px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.75;
    font-weight: bold;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.about-stat strong {
    font-size: 38px;
    font-family: 'Fredoka One', sans-serif;
    background: linear-gradient(135deg, var(--teal-dark), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-stat span {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    max-width: 120px;
}

/* ===========================
   MVV CARDS
=========================== */
.mvv-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mvv-icon {
    font-size: 38px;
    width: 66px;
    height: 66px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.mvv-card h2 {
    font-size: 32px;
    margin-bottom: 8px;
    text-align: center;
}

.mvv-card p,
.mvv-card .custom-list li {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.7;
}

/* ===========================
   PROBLEM SECTION
=========================== */
.problem-card {
    border-top-color: var(--orange);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
    align-items: start;
}

.problem-text p {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.75;
}

.problem-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.problem-stat {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    border-left: 5px solid var(--orange);
}

.ps-number {
    display: block;
    font-family: 'Fredoka One', sans-serif;
    font-size: 42px;
    color: var(--orange);
    line-height: 1;
}

.ps-label {
    display: block;
    font-size: 20px;
    color: var(--muted);
    margin-top: 4px;
}

/* ===========================
   TEAM GRID
=========================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--teal);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    font-size: 48px;
    margin: 0 auto 6px;
    width: 80px;
    height: 80px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card h3 {
    font-size: 18px;
    color: var(--text);
}

.team-card p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.team-tag {
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 18px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 6px;
}

/* ===========================
   TECH GRID
=========================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tech-item {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color .2s, transform .2s;
}

.tech-item:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}

.tech-item span {
    font-size: 28px;
}

.tech-item strong {
    font-size: 15px;
    color: var(--text);
}

.tech-item small {
    font-size: 12px;
    color: var(--muted);
}

/* ===========================
   ALERT BOX
=========================== */
.alert-box {
    background: #fff8e6;
    border-left: 5px solid var(--orange);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
}

.alert-box p {
    margin: 0;
    color: #7a5a00;
    font-size: 15px;
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    font-size: 34px;
}

/* Centralized scroll animations used */


/* =============================================
   DISEÑO RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Duplicate header styles removed */

    .about-hero h1 {
        font-size: 38px;
    }

    .about-stats {
        gap: 20px;
    }

    .about-stat strong {
        font-size: 30px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mvv-card p,
    .mvv-card .custom-list li {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mvv-card p,
    .mvv-card .custom-list li {
        font-size: 17px;
    }
}


/* =============================================
   DARK MODE OVERRIDES
============================================= */
body.dark-mode {
    --bg-main: #121220;
    --card-bg: #1a1a2e;
    --surface: #1a1a2e;
    --bg: #12122a;
    --text: #e8e8f0;
    --muted: #a0a0b8;
    --border: #2a2a40;
    --teal-light: rgba(255, 159, 28, 0.15);
}

body.dark-mode .about-hero {
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card {
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-card {
    background: var(--card-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

body.dark-mode h2 {
    color: var(--orange);
    border-bottom-color: #2a2a40;
}

body.dark-mode .tech-item {
    background: var(--bg);
    border-color: var(--border);
}

body.dark-mode .problem-stat {
    background: var(--bg);
}

.equipo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto 0;
    border-radius: 12px;
}