:root {
    --blue-dark: #032b52;
    --blue-dark-2: #00264a;

    --blue: #00a5df;
    --blue-light: #20b8ec;

    --cyan: #00c6ff;

    --white: #ffffff;
    --background: #f5f8fb;

    --text: #17324d;
    --text-light: #4e5b68;

    --border: #dce5ec;

    --primary: #0b5ed7;
    --primary-dark: #06479e;
    --primary-light: #eaf3ff;

    --dark: #101828;
    --dark-2: #162033;

    /* --text: #344054; */
    --muted: #667085;

    --light: #f8fafc;
    --white: #ffffff;

    --border: #e4e7ec;

    --accent: #20b8e6;

    --shadow: 0 10px 30px rgba(0, 40, 80, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Overpass', sans-serif;
    background: var(--background);
    color: var(--text);
    font-weight: normal;
    font-size: 100%;
    padding-bottom: 55px;
    line-height: 1.7;
    overflow-x: hidden;
}


header {
    background-color: black;
    height: 65px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menuNavegacion {
    background-color: black;
    height: 60px;
    padding: 5px 5px;
}

.logoPrincipal {
    position: absolute;
    left: 10px;
}

.checkbox {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    opacity: 0;
}

.cerrar {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    pointer-events: none;
}

.menu {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    pointer-events: none;
}

.cerrar {
    display: none;
}

.checkbox:checked ~ .menu {
    display: none;
}

.checkbox:checked ~ .cerrar {
    display: block;
}

.checkbox:checked ~ .menuItems {
    top: 60px;
}

.menuItems {
    width: 180px;
    position: absolute;
    top: -360px;
    z-index: -1;
    right: 0;
    transition: 250ms;
}

.menuItems li {
    list-style: none;
}

.menuItems li a {
    text-decoration: none;
    background-color: black;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: white;
    font-weight: bold;
    gap: 10px;
}

.menuItems li a img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

.menuItems li a:hover {
    background-color: #69b0ee;
    color: black;
}



.team-section {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    margin-top: 50px;
    padding: 40px 25px 70px;
}

.team-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 35px;
}

.header-line {
    display: block;
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    margin: 0 auto 15px;
    border-radius: 10px;
}

.team-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: -1px;
    color: var(--blue-dark);
}

.team-header p {
    margin-top: 15px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

.team-banner {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 40, 80, 0.15);
}

.team-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 35, 70, 0.30), rgba(0, 170, 230, 0.05));
    pointer-events: none;
}

.team-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.team-intro {
    text-align: center;
    margin: 50px auto 35px;
}

.intro-line {
    width: 300px;
    height: 3px;
    margin: 0 auto 15px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
}

.team-intro h2 {
    color: var(--blue-dark);
    font-size: 27px;
    margin-bottom: 8px;
}

.team-intro p {
    color: var(--text-light);
    font-size: 15px;
}


html {
    scroll-behavior: smooth;
}

/* //// MEMBER SECTIONS //// */

.member-section {
    padding: 110px 0;
}

.member-section-dark {
    color: var(--white);
    background: linear-gradient(135deg, #0c1728 0%, #111f35 100%);
    padding: 20px;
    /* border-radius: 35px; */
}

.member-section-light {
    color: var(--text);
    background: #6b6d6f2b;
    padding: 20px;
    /* border-radius: 35px; */
    margin-top: 20px;
}

.member-card {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(400px, 1.28fr);
    gap: 75px;
    align-items: start;
}

.member-card-reverse {
    grid-template-columns: minmax(400px, 1.28fr) minmax(280px, .72fr);
}

.member-card-reverse
.member-photo-column {
    order: 2;
}

.member-photo-column {
    position: sticky;
    top: 40px;
}

.member-photo {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #18273c;
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
}

.member-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(.95);
}

.member-section-light
.member-photo {
    box-shadow: 0 30px 70px rgba(16,24,40,.15);
}

.photo-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 50px;
    color: var(--white);
    background: rgba(8,23,42,.90);
    backdrop-filter: blur(10px);
    font-size: .85rem;
    font-weight: 700;
}

.photo-badge-blue {
    background: rgba(11,94,215,.93);
}

/* //// MEMBER CONTENT //// */

.member-number {
    display: block;
    margin-bottom: 13px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.member-content h2 {
    margin-bottom: 5px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.member-section-light
.member-content h2 {
    color: var(--dark);
}

.member-content h3 {
    color: #8ddff4;
    font-size: 1.1rem;
    font-weight: 600;
}

.member-section-light
.member-content h3 {
    color: var(--primary);
}

.member-divider {
    width: 70px;
    height: 3px;
    margin: 25px 0 30px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.member-content > p {
    color: rgba(255,255,255,.72);
    margin-bottom: 18px;
}

.member-section-light
.member-content > p {
    color: var(--muted);
}

.member-content .member-lead {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}

.member-section-light
.member-content .member-lead {
    color: var(--dark);
}

/* //// MEMBER BLOCKS //// */

.member-block {
    margin-top: 42px;
}

.member-block h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.member-section-light
.member-block h4 {
    color: var(--dark);
}

.member-block h4 i {
    color: var(--accent);
}

/* //// SKILL TAGS //// */

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-tags span {
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.055);
    font-size: .82rem;
    transition: .25s ease;
}

.skill-tags span:hover {
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.member-section-light
.skill-tags span {
    border-color: #d9e1eb;
    color: #475467;
    background: var(--white);
}

.member-section-light
.skill-tags span:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* //// TIMELINE //// */

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 7px;
    bottom: 7px;
    width: 1px;
    background: rgba(255,255,255,.18);
}

.member-section-light
.timeline::before {
    background: #d6deea;
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 7px;
    width: 11px;
    height: 11px;
    border: 3px solid #122238;
    border-radius: 50%;
    background: var(--accent);
}

.member-section-light
.timeline-dot {
    border-color: #f7f9fc;
}

.timeline-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--white);
    font-size: .95rem;
}

.member-section-light
.timeline-item strong {
    color: var(--dark);
}

.timeline-item p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: .88rem;
}

.member-section-light
.timeline-item p {
    color: var(--muted);
}

/* //// EXPERIENCE //// */

.member-block > p {
    color: rgba(255,255,255,.68);
}

.member-section-light
.member-block > p {
    color: var(--muted);
}

.experience-highlight {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    background: rgba(255,255,255,.045);
}

.member-section-light
.experience-highlight {
    background: var(--white);
}

.experience-highlight strong {
    color: var(--accent);
    font-size: 1.15rem;
    white-space: nowrap;
}

.experience-highlight span {
    color: rgba(255,255,255,.68);
    font-size: .9rem;
}

.member-section-light
.experience-highlight span {
    color: var(--muted);
}

/* //// PROJECTS //// */

.project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.project-item {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}

.project-item strong {
    display: block;
    margin-bottom: 7px;
    color: var(--white);
}

.project-item p {
    margin: 0;
    color: rgba(255,255,255,.60);
    font-size: .85rem;
}

/* //// CONTRIBUTION //// */

.contribution-box {
    padding: 25px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(11,94,215,.12), rgba(32,184,230,.06));
    border: 1px solid rgba(11,94,215,.15);
}

.contribution-box p {
    margin: 0;
}

/* //// QUOTE //// */

.member-quote {
    position: relative;
    margin-top: 45px;
    padding: 30px 30px 30px 40px;
    border-left: 3px solid var(--accent);
}

.quote-mark {
    position: absolute;
    top: -15px;
    left: 15px;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
}

.member-quote p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    font-style: italic;
}

.member-section-light
.member-quote p {
    color: var(--muted);
}

/* //// CAPABILITIES //// */

.team-capabilities {
    background: var(--white);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.section-heading h2 strong {
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
}

.capability-card {
    padding: 32px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 25px rgba(16,24,40,.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.capability-card:hover {
    transform: translateY(-7px);
    border-color: #b8d2f5;
    box-shadow: var(--shadow);
}

.capability-card > i {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 13px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 1.25rem;
}

.capability-card h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.05rem;
}

.capability-card p {
    color: var(--muted);
    font-size: .9rem;
}

/* //// CTA //// */

.team-cta {
    position: relative;
    padding: 100px 0;
    color: var(--white);
    background: linear-gradient(120deg, #062452, #087a9f);
    overflow: hidden;
}

.team-cta::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -200px;
    top: -200px;
    border-radius: 50%;
    background: rgba(94,213,243,.13);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.team-cta .section-kicker {
    color: #72dff8;
}

.cta-content h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.cta-content h2 strong {
    display: block;
    color: #66d8f5;
}

.cta-content p {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 9px;
    color: #06335f;
    background: var(--white);
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,.20);
}

.btn-primary i {
    transition: transform .25s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}


.team-footer {
    text-align: center;
    margin-top: 60px;
}

.footer-line {
    width: 300px;
    height: 2px;
    background: var(--blue);
    margin: 0 auto 20px;
}

.team-footer p {
    color: var(--text-light);
    line-height: 1.8;
}

.team-footer strong {
    color: var(--blue-dark);
    font-size: 18px;
}

.modal-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: white;
    text-decoration: none;
    padding: 13px 25px;
    border-radius: 7px;
    font-weight: 700;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 140, 210, 0.30);
}

.copyright {
    font-weight: bold;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

footer {
    left: -1px;
    background-color: black;
    position: fixed;
    bottom: 0;
    width: 100%;
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    z-index: 1000;
}

.redes-sociales {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.redes-sociales a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
}

.Facebook:hover {
    color: #1877f2;
}

.Instagram:hover {
    color: #e1306c;
}

.Youtube:hover {
    color: #ff0000;
}

.Tiktok:hover {
    color: lightgray;
}


/* ==== DESKTOP ==== */
@media (min-width: 1190px) {
    .checkbox,
    .menu,
    .cerrar {
        display: none;
    }

    .menuItems {
        top: 0;
        z-index: 1;
        width: unset;
        display: flex;
    }

    .menuItems li a {
        height: 60px;
        padding: 10px;
        margin-top: 0;
    }

    .member-card,
    .member-card-reverse {
        grid-template-columns: 1fr 1.4fr;
        gap: 45px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

/* ==== TABLET ==== */
@media (max-width: 850px) {
    .redes-sociales {
        display: none;
    }

    .member-card,
    .member-card-reverse {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .member-card-reverse
    .member-photo-column {
        order: 0;
    }

    .member-photo-column {
        position: relative;
        max-width: 560px;
        margin-inline: auto;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2,1fr);
    }    
}

/* ==== MÓVIL ==== */
@media (max-width: 600px) {
    body {
        padding-bottom: 50px;
    }

    .team-section {
        padding: 30px 15px 50px;
    }

    .team-banner {
        height: 160px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .solucion-card {
        min-height: 370px;
    }

    .solucion-image {
        width: 260px;
        height: 75px;
    }

    .card-content {
        padding: 80px 20px 25px;
    }

    .card-content h3 {
        font-size: 20px;
    }

    .card-content p {
        font-size: 14px;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0;
    }

    .experience-highlight {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .member-quote {
        padding-left: 30px;
    }
}

/* ==== PANTALLAS MUY PEQUEÑAS ==== */
@media (max-width: 400px) {
    .team-header h1 {
        font-size: 29px;
    }

    .header-line,
    .intro-line,
    .footer-line {
        width: 220px;
    }

    .solucion-image {
        width: 155px;
        height: 90px;
        border-radius: 12px;
    }
}