/* ============================================================
   web.css — Sitio público Club EMBA
   Tema claro / profesional · Acento verde EMBA
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --web-green:       #16a34a;
    --web-green-light: #22c55e;
    --web-green-pale:  #f0fdf4;
    --web-dark:        #0f172a;
    --web-text:        #1e293b;
    --web-text-muted:  #64748b;
    --web-border:      #e2e8f0;
    --web-bg:          #f8fafc;
    --web-card:        #ffffff;
    --web-shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
    --web-shadow-md:   0 4px 16px rgba(0,0,0,.1);
    --web-radius:      10px;
    --web-nav-h:       64px;
    --web-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--web-font);
    background: var(--web-bg);
    color: var(--web-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--web-green); text-decoration: none; }
a:hover { color: var(--web-green-light); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .75rem; line-height: 1.25; color: var(--web-text); }

/* ── Navbar ─────────────────────────────────────────────────── */
.web-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--web-border);
    height: var(--web-nav-h);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.web-nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.web-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    flex-shrink: 0;
}
.web-logo-badge {
    width: 38px;
    height: 38px;
    background: var(--web-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}
.web-logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--web-text);
    line-height: 1.1;
}
.web-logo-text span {
    display: block;
    font-weight: 400;
    font-size: .72rem;
    color: var(--web-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.web-nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 1;
}
.web-nav-link {
    padding: .45rem .85rem;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--web-text-muted);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.web-nav-link:hover,
.web-nav-link.active {
    color: var(--web-green);
    background: var(--web-green-pale);
}
.web-nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
.web-btn-login {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1.1rem;
    background: var(--web-green);
    color: #fff !important;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 600;
    transition: background .15s, transform .1s;
}
.web-btn-login:hover {
    background: #15803d;
    transform: translateY(-1px);
}
/* Hamburger */
.web-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .3rem;
    background: none;
    border: none;
}
.web-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--web-text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* ── Layout Contenedor ──────────────────────────────────────── */
.web-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.web-section {
    padding: 3.5rem 0;
}
.web-section-sm {
    padding: 2rem 0;
}

/* ── Section Header ─────────────────────────────────────────── */
.web-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.web-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--web-text);
    position: relative;
    padding-left: .85rem;
}
.web-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 3px;
    background: var(--web-green);
    border-radius: 2px;
}
.web-link-more {
    font-size: .85rem;
    font-weight: 600;
    color: var(--web-green);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}

/* ── Cards ──────────────────────────────────────────────────── */
.web-card {
    background: var(--web-card);
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius);
    box-shadow: var(--web-shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
}
.web-card:hover {
    box-shadow: var(--web-shadow-md);
    transform: translateY(-2px);
}
.web-card-body { padding: 1.25rem; }
.web-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ── Grid helpers ───────────────────────────────────────────── */
.web-grid { display: grid; gap: 1.5rem; }
.web-grid-2 { grid-template-columns: repeat(2, 1fr); }
.web-grid-3 { grid-template-columns: repeat(3, 1fr); }
.web-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Badges ─────────────────────────────────────────────────── */
.web-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.web-badge-green { background: var(--web-green-pale); color: var(--web-green); }
.web-badge-blue  { background: #eff6ff; color: #2563eb; }
.web-badge-orange{ background: #fff7ed; color: #ea580c; }
.web-badge-gray  { background: #f1f5f9; color: var(--web-text-muted); }

/* ── Botones ─────────────────────────────────────────────────── */
.web-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.4rem;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    border: none;
    text-decoration: none;
}
.web-btn-primary {
    background: var(--web-green);
    color: #fff !important;
}
.web-btn-primary:hover { background: #15803d; transform: translateY(-1px); }
.web-btn-outline {
    background: transparent;
    color: var(--web-green) !important;
    border: 2px solid var(--web-green);
}
.web-btn-outline:hover { background: var(--web-green-pale); }

/* ── Hero ───────────────────────────────────────────────────── */
.web-hero {
    background: linear-gradient(135deg, var(--web-dark) 0%, #1e3a5f 50%, #1a4731 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.web-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2316a34a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.web-hero-content { position: relative; z-index: 1; }

/* Hero con imagen de fondo personalizada */
.web-hero-img {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.web-hero-img::before {
    background: rgba(0, 0, 0, 0.54);
}
.web-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .75rem;
}
.web-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    max-width: 540px;
    margin-bottom: 1.75rem;
}
.web-hero-accent { color: var(--web-green-light); }
.web-hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.web-hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--web-green-light);
    line-height: 1;
}
.web-hero-stat-lbl {
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Noticias ───────────────────────────────────────────────── */
.news-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.news-card-no-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--web-green-pale), #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--web-text-muted);
    font-size: 2rem;
}
.news-meta {
    font-size: .78rem;
    color: var(--web-text-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--web-text);
    margin-bottom: .5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-excerpt {
    font-size: .85rem;
    color: var(--web-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .75rem;
}
/* Noticia destacada grande */
.news-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 300px;
}
.news-featured .news-card-img,
.news-featured .news-card-no-img {
    aspect-ratio: auto;
    height: 100%;
}
.news-featured .web-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}
.news-featured .news-title {
    font-size: 1.35rem;
    -webkit-line-clamp: 3;
    margin-bottom: .75rem;
}
.news-featured .news-excerpt {
    -webkit-line-clamp: 3;
    font-size: .9rem;
}

/* ── Galería ─────────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.gallery-album-thumb {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--web-radius);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #1e3a5f, #1a4731);
}
.gallery-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.gallery-album-thumb:hover img { transform: scale(1.06); }
.gallery-album-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    padding: 2rem .85rem .75rem;
    color: #fff;
}
.gallery-album-title { font-size: .9rem; font-weight: 700; margin: 0 0 .2rem; }
.gallery-album-meta  { font-size: .72rem; opacity: .75; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}
.lightbox-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.8);
    font-size: .83rem;
    background: rgba(0,0,0,.4);
    padding: .35rem .9rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Partidos ────────────────────────────────────────────────── */
.partido-card {
    background: var(--web-card);
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--web-shadow);
    transition: box-shadow .2s;
}
.partido-card:hover { box-shadow: var(--web-shadow-md); }
.partido-date {
    text-align: center;
    min-width: 52px;
    flex-shrink: 0;
}
.partido-date-day  { font-size: 1.6rem; font-weight: 800; color: var(--web-green); line-height: 1; }
.partido-date-mon  { font-size: .7rem; text-transform: uppercase; color: var(--web-text-muted); letter-spacing: .06em; }
.partido-divider   { width: 1px; background: var(--web-border); align-self: stretch; flex-shrink: 0; }
.partido-info      { flex: 1; min-width: 0; }
.partido-rival     { font-size: .97rem; font-weight: 700; margin: 0 0 .2rem; }
.partido-meta      { font-size: .78rem; color: var(--web-text-muted); }
.partido-score {
    text-align: center;
    flex-shrink: 0;
    min-width: 70px;
}
.partido-score-val  { font-size: 1.3rem; font-weight: 800; color: var(--web-text); }
.partido-score-lbl  { font-size: .68rem; color: var(--web-text-muted); }

/* ── Jugadores ───────────────────────────────────────────────── */
.player-card {
    background: var(--web-card);
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius);
    box-shadow: var(--web-shadow);
    overflow: hidden;
    text-align: center;
    transition: box-shadow .2s, transform .15s;
}
.player-card:hover { box-shadow: var(--web-shadow-md); transform: translateY(-3px); }
.player-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: linear-gradient(135deg, #1e3a5f, #1a4731);
}
.player-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1e3a5f, #1a4731);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.25);
    font-size: 3.5rem;
}
.player-card-body { padding: .9rem 1rem; }
.player-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--web-green);
    line-height: 1;
}
.player-name   { font-size: .92rem; font-weight: 700; margin: .2rem 0; }
.player-pos    { font-size: .75rem; color: var(--web-text-muted); }

/* ── Documentos ──────────────────────────────────────────────── */
.doc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.25rem;
    background: var(--web-card);
    border: 1px solid var(--web-border);
    border-radius: 8px;
    box-shadow: var(--web-shadow);
    transition: box-shadow .15s;
    text-decoration: none;
    color: var(--web-text);
}
.doc-row:hover { box-shadow: var(--web-shadow-md); color: var(--web-text); }
.doc-icon { font-size: 1.6rem; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-size: .92rem; font-weight: 600; margin: 0 0 .15rem; }
.doc-meta  { font-size: .75rem; color: var(--web-text-muted); }
.doc-dl    { font-size: .85rem; color: var(--web-green); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.web-footer {
    background: var(--web-dark);
    color: rgba(255,255,255,.65);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.web-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.web-footer-brand { }
.web-footer-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}
.web-footer-logo-badge {
    width: 36px; height: 36px;
    background: var(--web-green);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; flex-shrink: 0;
}
.web-footer-logo-text {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
}
.web-footer-desc {
    font-size: .82rem;
    line-height: 1.65;
    max-width: 280px;
}
.web-footer-rrss {
    display: flex;
    gap: .6rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.web-footer-rrss a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7) !important;
    font-size: 1rem;
    transition: background .15s, color .15s;
}
.web-footer-rrss a:hover {
    background: var(--web-green);
    color: #fff !important;
}
.web-footer-col h5 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.4);
    margin-bottom: .85rem;
}
.web-footer-col ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.web-footer-col ul li a {
    font-size: .85rem;
    color: rgba(255,255,255,.6) !important;
    transition: color .15s;
}
.web-footer-col ul li a:hover { color: var(--web-green-light) !important; }
.web-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .78rem;
}
.web-footer-bottom a { color: var(--web-green-light) !important; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.web-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--web-border);
    padding: .65rem 0;
    font-size: .8rem;
    color: var(--web-text-muted);
}
.web-breadcrumb ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    align-items: center;
}
.web-breadcrumb li + li::before { content: '/'; margin-right: .25rem; opacity: .4; }
.web-breadcrumb li a { color: var(--web-green); }
.web-breadcrumb li:last-child { color: var(--web-text); }

/* ── Page header ─────────────────────────────────────────────── */
.web-page-header {
    background: #fff;
    border-bottom: 1px solid var(--web-border);
    padding: 2rem 0;
}
.web-page-title { font-size: 1.8rem; font-weight: 800; margin: 0; }
.web-page-sub   { color: var(--web-text-muted); font-size: .9rem; margin: .4rem 0 0; }

/* ── Paginación ──────────────────────────────────────────────── */
.web-pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}
.web-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .6rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--web-text-muted);
    background: var(--web-card);
    border: 1px solid var(--web-border);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.web-page-btn:hover,
.web-page-btn.active {
    background: var(--web-green);
    color: #fff;
    border-color: var(--web-green);
}

/* ── Estado vacío ────────────────────────────────────────────── */
.web-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--web-text-muted);
}
.web-empty i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 1rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .web-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .web-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .web-footer-grid { grid-template-columns: 1fr 1fr; }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .news-card-img,
    .news-featured .news-card-no-img { aspect-ratio: 16/9; height: 220px; }
}
@media (max-width: 640px) {
    .web-nav-links { display: none; flex-direction: column; gap: 0; }
    .web-nav-links.open {
        display: flex;
        position: fixed;
        top: var(--web-nav-h);
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--web-border);
        padding: .5rem 0;
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }
    .web-nav-links.open .web-nav-link { padding: .75rem 1.5rem; border-radius: 0; }
    .web-nav-toggle { display: flex; }
    .web-grid-2, .web-grid-3, .web-grid-4 { grid-template-columns: 1fr; }
    .web-footer-grid { grid-template-columns: 1fr; }
    .web-section { padding: 2.5rem 0; }
    .partido-score { display: none; }
}
