@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;
    --teal-light: rgba(131, 228, 209, 0.15);
    --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);
}


/* =============================================
   GENERAL
============================================= */

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;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}


/* =============================================
   HERO
============================================= */

.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 {
    display: inline-block;
    border-bottom: 2px dashed rgba(255, 140, 0, 0.5);
    padding-bottom: 4px;
    font-size: clamp(22px, 5vw, 38px);
    color: #111;
    margin: 0 0 15px 0;
    transition: all 0.2s ease;
}

.hero-title:hover {
    cursor: pointer;
    color: var(--accent);
    transform: scale(1.02);
}

.hero-subtitle {
    font-size: clamp(15px, 3.5vw, 19px);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}


/* =============================================
   INFO GRID
============================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.col-span-2 {
    grid-column: 1 / -1;
}


/* =============================================
   TITULOS
============================================= */

h2 {
    color: var(--accent);
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    font-size: 24px;
}

.historia {
    font-size: 20px;
}


/* =============================================
   CARDS GENERALES
============================================= */

.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: clamp(15px, 3.5vw, 18px);
    color: var(--text-light);
}

.card h2 {
    font-size: clamp(22px, 4.5vw, 32px);
}


/* =============================================
   LISTAS
============================================= */

.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);
}


/* =============================================
   ALERTA
============================================= */

.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: 20px;
}


/* =============================================
   ABOUT HERO
============================================= */

.about-hero {
    text-align: center;
    background: var(--surface);
    padding: clamp(28px, 6vw, 56px) clamp(16px, 4vw, 32px);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border-top: 6px solid var(--accent);
    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: 16px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.about-hero-title h1 {
    font-size: clamp(26px, 5.5vw, 48px);
    margin: 0;
    color: var(--text);
    line-height: 1.15;
}

.about-hero-logo {
    height: auto;
    max-height: clamp(65px, 12vw, 130px);
    width: auto;
    max-width: min(100%, 420px);
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.about-hero-logo:hover {
    transform: scale(1.03);
}

.highlight {
    background: linear-gradient(135deg,
            var(--teal-dark),
            var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-sub {
    font-size: clamp(15px, 3.5vw, 20px);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.65;
    font-weight: bold;
}


/* =============================================
   ESTADISTICAS
============================================= */

.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;
}


/* =============================================
   MISION, VISION Y VALORES
============================================= */

.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 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* =============================================
   TARJETAS DEL EQUIPO
============================================= */

.team-card {
    width: 100%;
    max-width: 220px;
    justify-self: center;

    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    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;
    box-sizing: border-box;
}

.team-card:nth-child(1) {
    grid-column: 1 / 4;
}

.team-card:nth-child(2) {
    grid-column: 4 / 7;
}

.team-card:nth-child(3) {
    grid-column: 7 / 10;
}

.team-card:nth-child(4) {
    grid-column: 10 / 13;
}

.team-card:nth-child(5) {
    grid-column: 2 / 5;
}

.team-card:nth-child(6) {
    grid-column: 5 / 8;
}

.team-card:nth-child(7) {
    grid-column: 8 / 11;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.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;

    margin: 0 auto 6px;

    overflow: hidden;
}

.team-avatar img {
    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 50%;
}


/* =============================================
   TEXTO DEL EQUIPO
============================================= */

.team-card h3 {
    font-size: 18px;
    color: var(--text);
    margin: 0;
}

.team-card p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;

    flex: 1;

    margin: 0;
}

.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;
}


/* =============================================
   TECNOLOGIAS
============================================= */

.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);
}

.tech-item img {
    height: 35px;
    width: 35px;
}

/* =============================================
   RESPONSIVE - TABLET
============================================= */

@media (max-width: 768px) {

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-hero-title {
        gap: 12px;
        margin: 10px 0 16px;
    }

    .about-hero-title h1,
    .about-hero h1 {
        font-size: clamp(24px, 4.5vw, 36px);
    }

    .about-hero-logo {
        height: auto;
        max-height: clamp(55px, 9vw, 85px);
        width: auto;
        max-width: min(100%, 300px);
        object-fit: contain;
    }

    .about-stats {
        gap: 20px;
    }

    .about-stat strong {
        font-size: 30px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* ================================
       EQUIPO - TABLET
       2 POR FILA
    ================================ */

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-card {
        width: 100%;
        max-width: 260px;
        grid-column: auto !important;
        justify-self: center;
    }


    .mvv-card p,
    .mvv-card .custom-list li {
        font-size: 18px;
    }
}

/* =============================================
   RESPONSIVE - CELULAR
============================================= */

@media (max-width: 480px) {

    .about-hero {
        padding: 20px 12px;
        border-radius: 16px;
    }

    .about-hero-title {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 8px 0 14px;
    }

    .about-hero-title h1 {
        font-size: clamp(22px, 5.5vw, 28px);
        text-align: center;
    }

    .about-hero-logo {
        height: auto;
        max-height: 58px;
        width: auto;
        max-width: min(85%, 220px);
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* ================================
       EQUIPO - CELULAR
       1 POR FILA
    ================================ */

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-card {
        width: 100%;
        max-width: 100%;
        grid-column: auto !important;
        justify-self: center;
        padding: 20px 14px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mvv-card p,
    .mvv-card .custom-list li {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .about-hero-title h1 {
        font-size: 20px;
    }

    .about-hero-logo {
        max-height: 48px;
        max-width: min(85%, 180px);
    }
}



/* =============================================
   DARK MODE
============================================= */

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);
}


/* =============================================
   IMAGEN EQUIPO
============================================= */

.equipo {
    display: block;
    max-width: 100%;
    height: auto;

    margin: 30px auto 0;

    border-radius: 12px;
}