/* ── equipo.css — Página de Nuestro Equipo ── */

/* Hero */
.equipo-hero {
    min-height: 38vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 7rem 2rem 3.5rem;
    background: linear-gradient(160deg, var(--primary-dark) 0%, #1a4a8a 60%, #2d6cdf 100%);
    position: relative;
    overflow: hidden;
}
.equipo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(77,145,255,.28) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,.06) 0%, transparent 70%);
    pointer-events: none;
}
.equipo-hero-inner {
    position: relative;
    z-index: 1;
}
.equipo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: .6rem;
}
.equipo-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    max-width: 460px;
    margin: 0 auto;
}
.hero-chip {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* Layout grid */
.equipo-page {
    max-width: 1060px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 680px) {
    .equipo-page { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Cards */
.eq-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    padding: 1.8rem 2rem;
    transition: box-shadow .25s ease, transform .25s ease;
}
.eq-card:hover {
    box-shadow: 0 8px 32px rgba(26,74,138,.12);
    transform: translateY(-2px);
}
.eq-card.full-width {
    grid-column: 1 / -1;
}
.eq-card-header {
    margin-bottom: 1.2rem;
}
.eq-card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark, #1a202c);
    line-height: 1.2;
    margin: 0;
}

/* Info block */
.eq-info-block {
    font-size: .9rem;
    color: var(--text-muted, #4a5568);
    line-height: 1.75;
}
.eq-info-block strong {
    color: var(--text-dark, #1a202c);
    font-weight: 600;
}

/* Agradecimientos */
.eq-thanks-text {
    font-size: .9rem;
    color: var(--text-muted, #4a5568);
    line-height: 1.75;
    margin: 0;
}

/* Person rows */
.person-list {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.person-item {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: var(--bg-light, #f7fafc);
    border: 1px solid rgba(0,0,0,.05);
}
.person-role {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent, #4d91ff);
    margin: 0;
}
.person-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-dark, #1a202c);
    line-height: 1.4;
    margin: 0;
}

/* Person list horizontal (para full-width cards) */
.person-list--row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .8rem;
}
.person-list--row .person-item {
    flex: 1 1 220px;
}

/* Sub-sección label dentro de una card */
.eq-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted, #4a5568);
    margin: 0 0 .8rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.eq-section-label--mt {
    margin-top: 1.6rem;
}
html.dark-mode .eq-section-label {
    color: #64748b !important;
    border-bottom-color: rgba(255,255,255,.07) !important;
}

/* Dev grid */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .8rem;
}
.dev-card {
    padding: .85rem 1rem;
    border-radius: 12px;
    background: var(--bg-light, #f7fafc);
    border: 1px solid rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.dev-card .person-role { font-size: .7rem; }
.dev-card .person-name { font-size: .88rem; }

/* Dark mode */
html.dark-mode .eq-card {
    background: #1e293b !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.3) !important;
}
html.dark-mode .eq-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.4) !important;
}
html.dark-mode .eq-card-header h2,
html.dark-mode .person-name,
html.dark-mode .eq-info-block strong {
    color: #e2e8f0 !important;
}
html.dark-mode .eq-info-block,
html.dark-mode .eq-thanks-text {
    color: #94a3b8 !important;
}
html.dark-mode .person-item,
html.dark-mode .dev-card {
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.07) !important;
}
html.dark-mode .person-role {
    color: #4d91ff !important;
}
