/* ============================================================
   Estilos generales del sitio - Club Deportes Maipo
   Los colores se definen como variables CSS (--primary, --dark,
   --accent) y se inyectan dinámicamente desde base.html usando los
   valores guardados en el panel de administración (SiteConfig).
   ============================================================ */

:root {
    --primary: #6EB05B;
    --primary-dark: #3f7a30;
    --dark: #0e2a1c;
    --accent: #c7a44a;
    --gray: #6b7280;
    --light: #f4f6f5;
    --white: #ffffff;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 3px 12px rgba(15, 42, 27, 0.07);
    --shadow-md: 0 16px 38px rgba(15, 42, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, #f7f9f7 0, var(--light) 360px);
    color: #1c231f;
    line-height: 1.55;
    min-width: 320px;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 80%, white);
    outline-offset: 3px;
}

.container {
    width: min(100% - 40px, 1160px);
    margin: 0 auto;
    padding: 0;
}

/* ---------- Barra superior (logo + auspiciadores) ---------- */
.topbar {
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 10px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.15;
}
.brand img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    padding: 2px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.sponsor-strip {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sponsor-strip img {
    height: 34px;
    width: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 3px;
}

/* ---------- Navbar (menú principal) ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.94);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e3e6e2;
    box-shadow: 0 4px 14px rgba(15, 42, 27, 0.06);
    backdrop-filter: blur(12px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
}
.navbar-inner { justify-content: space-between; position: relative; }
.navbar .navbar-inner { justify-content: space-between; }
.navbar-inner .nav-links { flex: 1; justify-content: center; }

.cart-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--light);
    font-size: 1.15rem;
    flex: 0 0 auto;
    margin-left: 10px;
}
.cart-fab:hover { background: #e6ece6; }
.cart-fab .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #232b26;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    border-bottom-color: var(--accent);
}

.nav-links a.nav-cta {
    background: var(--dark);
    color: var(--white);
    border-radius: 999px;
    padding: 8px 18px;
    margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: var(--primary-dark); border-bottom-color: transparent; }

.nav-toggle { display: none; background: none; border: none; color: var(--dark); font-size: 1.6rem; cursor: pointer; }

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #0d130f;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    box-shadow: 0 5px 12px rgba(63, 122, 48, 0.18);
}
.btn:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(63, 122, 48, 0.25); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

/* ---------- Hero (banner principal / Nuestra Historia) ---------- */
.hero {
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: clamp(68px, 9vw, 108px) 0 clamp(60px, 7vw, 84px);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,20,14,0.35), rgba(8,16,11,0.75));
}
.hero .container { position: relative; z-index: 1; }
.hero .hero-logo {
    height: 110px;
    width: 110px;
    object-fit: contain;
    padding: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    margin: 0 auto 20px;
}
.hero h1 {
    font-size: clamp(2.15rem, 5vw, 3.4rem);
    margin: 0 0 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero p { font-size: clamp(1rem, 2vw, 1.12rem); max-width: 600px; opacity: 0.95; margin: 0 auto 26px; }

.hero-tall { padding: clamp(96px, 12vw, 142px) 0 clamp(112px, 14vw, 158px); }

/* ---------- Página no encontrada ---------- */
.not-found-page {
    display: grid;
    min-height: min(620px, calc(100vh - 126px));
    place-items: center;
    padding: clamp(56px, 9vw, 110px) 0;
    background:
        radial-gradient(circle at 50% 0, rgba(110, 176, 91, .2), transparent 42%),
        linear-gradient(145deg, var(--dark), #061a10);
    color: var(--white);
    text-align: center;
}
.not-found-content { max-width: 670px; }
.not-found-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    padding: 4px;
    border-radius: 18px;
    background: var(--white);
    object-fit: contain;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}
.not-found-code { margin: 0; color: var(--accent); font-size: clamp(4.5rem, 13vw, 8.5rem); font-weight: 900; letter-spacing: -.08em; line-height: .85; }
.not-found-page h1 { margin: 20px 0 12px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.not-found-page p:not(.not-found-code) { max-width: 520px; margin: 0 auto; color: #d8e5dc; font-size: 1.06rem; }
.not-found-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.not-found-actions .btn-outline { padding: 9px 20px; }

/* ---------- Carrusel administrable de portada ---------- */
.hero-carousel {
    position: relative;
    min-height: clamp(500px, 58vw, 680px);
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
}
.hero-carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    background-color: var(--dark);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity .65s ease, transform 6.5s ease;
}
.hero-carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 24, 13, .88) 0%, rgba(4, 24, 13, .58) 48%, rgba(4, 24, 13, .2) 100%);
}
.hero-carousel-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero-carousel-content { position: relative; z-index: 1; max-width: 760px; padding-bottom: 58px; }
.hero-carousel .hero-logo { margin: 0 0 20px; }
.hero-carousel-kicker {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.hero-carousel h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); line-height: 1.04; margin: 0 0 16px; max-width: 700px; }
.hero-carousel p:not(.hero-carousel-kicker) { font-size: clamp(1rem, 2.1vw, 1.18rem); margin: 0; max-width: 570px; }
.hero-carousel-button { margin-top: 26px; }
.hero-carousel-controls {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    transform: translateX(-50%);
}
.hero-carousel-arrow, .hero-carousel-dot {
    border: 0;
    cursor: pointer;
}
.hero-carousel-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1;
    transition: background .18s ease, transform .18s ease;
}
.hero-carousel-arrow:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.hero-carousel-dots { display: flex; align-items: center; gap: 8px; }
.hero-carousel-dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .48); transition: width .18s ease, background .18s ease; }
.hero-carousel-dot.is-active { width: 28px; background: var(--accent); }

/* ---------- Franja de último resultado / próximo partido ---------- */
.matches-strip { margin-top: -70px; position: relative; z-index: 2; padding-bottom: 20px; }
.matches-strip-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.strip-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}
.strip-card-accent {
    background: var(--dark);
    color: var(--white);
    border: 2px solid var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20), 0 0 0 4px rgba(199, 164, 74, .16);
}
.strip-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.strip-card-accent .strip-label { color: var(--accent); }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.strip-team { font-weight: 700; font-size: 0.95rem; }
.strip-score { font-weight: 800; font-size: 1.3rem; }
.strip-score-caption { display: block; margin-top: -2px; color: var(--gray); font-size: .76rem; font-weight: 700; }
.strip-series-link { display: inline-block; margin-top: 10px; color: var(--primary-dark); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.strip-vs { color: var(--gray); font-size: 0.85rem; }
.strip-card-accent .strip-vs { color: #cfd8d2; }
.strip-date { font-size: 0.85rem; color: var(--gray); }
.strip-card-accent .strip-date { color: #cfd8d2; }

/* ---------- Secciones ---------- */
.section { padding: clamp(42px, 6vw, 72px) 0; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    margin: 0;
    border-left: 6px solid var(--primary);
    padding-left: 12px;
}
.see-all { font-weight: 700; color: var(--primary-dark); }

/* ---------- Banda de título de sección (estilo "NOTICIAS") ---------- */
.band-title {
    background: var(--accent);
    padding: 4px 0;
}
.band-title .band-title-inner {
    background: var(--dark);
    text-align: center;
    padding: 14px 0;
}
.band-title h2 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- Nuestros equipos (carrusel) ---------- */
.teams-section {
    background: var(--dark);
    padding: 60px 0;
    text-align: center;
}
.teams-section h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 40px;
}
.teams-carousel {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 18px;
    width: 100%;
}
.teams-track {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6px;
    overscroll-behavior-inline: contain;
    padding: 6px;
    scrollbar-width: none;
}
.teams-track::-webkit-scrollbar { display: none; }
.team-item {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 160px;
    scroll-snap-align: start;
}
.team-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin: 0 auto 14px;
}
.team-photo-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--primary-dark), #0a2618);
    color: var(--accent);
    font-size: 3.4rem;
    font-weight: 800;
    text-transform: uppercase;
}
.team-item span {
    display: block;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.carousel-arrow {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .15s ease;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.15); }

/* ---------- Tienda destacada (showcase) ---------- */
.shop-showcase {
    background: #e9ebe8;
    padding: 60px 0;
    position: relative;
}
.shop-showcase-logo { height: 46px; width: 46px; object-fit: contain; margin-bottom: 20px; }
.shop-showcase-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.shop-showcase-product { text-align: center; max-width: 320px; }
.shop-showcase-product img { max-height: 260px; margin: 0 auto; object-fit: contain; }
.shop-showcase-product h3 { margin: 14px 0 4px; font-size: 1.15rem; }
.shop-showcase-product .price-tag { font-size: 1.4rem; }
.shop-showcase-footer { display: flex; justify-content: flex-end; margin-top: 24px; }
.shop-showcase .carousel-arrow { border-color: var(--dark); color: var(--dark); }
.shop-showcase .carousel-arrow:hover { background: rgba(0,0,0,0.08); }
.btn-shop-outline {
    display: inline-block;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.btn-shop-outline:hover { background: var(--primary-dark); color: var(--white); }

/* ---------- Noticias (estilo banda) ---------- */
.news-band-section { background: var(--white); padding-bottom: 50px; }
.news-magazine-section { background: var(--white); padding: 46px 0 50px; }
.news-magazine-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    margin-bottom: 26px;
}
.news-featured {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 380px;
    box-shadow: var(--shadow-md);
}
.news-featured img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s ease;
}
.news-featured:hover img { transform: scale(1.04); }
.news-featured-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(8,16,11,0.92), rgba(8,16,11,0.1) 80%);
    color: #fff;
    padding: 30px 26px 22px;
}
.news-featured-overlay h3 { font-size: 1.4rem; margin: 8px 0 6px; }
.news-featured-overlay p { font-size: 0.92rem; opacity: 0.9; margin: 0; }
.news-side-list { display: flex; flex-direction: column; gap: 14px; }
.news-side-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--light);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.news-side-item:hover { background: #e9efe8; border-color: #dce7dc; transform: translateX(3px); }
.news-side-item img { width: 84px; height: 74px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.news-side-item h4 { margin: 0 0 4px; font-size: 0.95rem; line-height: 1.3; }
.news-side-date { font-size: 0.78rem; color: var(--gray); }
.news-simple-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    padding: 40px 0;
}
.news-simple-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}
.news-simple-item p {
    font-size: 0.85rem;
    color: #3a423d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.news-simple-footer { text-align: center; }

/* ---------- Tienda: vitrina en banners ---------- */
.shop-banners { background: var(--light); padding: 56px 0; }
.shop-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.shop-banner {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 260px;
    background: #e2e6e3;
    box-shadow: var(--shadow-sm);
}
.shop-banner img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s ease;
}
.shop-banner:hover img { transform: scale(1.05); }
.shop-banner-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(8,16,11,0.85), rgba(8,16,11,0) 75%);
    color: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.shop-banner-overlay h3 { margin: 0 0 4px; font-size: 1.15rem; }
.shop-banner-overlay .price-tag { color: #fff; font-weight: 700; }
.shop-banner-overlay .btn-shop-outline { border-color: #fff; color: #fff; }
.shop-banner-overlay .btn-shop-outline:hover { background: #fff; color: var(--dark); }

/* ---------- Franja de auspiciadores ---------- */
.sponsors-band { background: var(--white); border-top: 1px solid #e7ebe7; padding: 30px 0; }
.sponsors-band-title {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    margin: 0 0 18px;
    font-weight: 700;
}
.sponsors-band-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
}
.sponsors-band-row img { height: 46px; object-fit: contain; filter: grayscale(40%); opacity: .85; transition: all .15s ease; }
.sponsors-band-row img:hover { filter: none; opacity: 1; }

/* ---------- Grids / Cards (usado en listados de noticias/tienda/partidos) ---------- */
.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e7ece8;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .card-img { height: 170px; width: 100%; object-fit: cover; background: #e2e6e3; }
.card .card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card .badge {
    display: inline-block;
    background: var(--primary);
    color: #0d130f;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.card h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.card p.excerpt { color: var(--gray); font-size: 0.92rem; flex: 1; }
.card .meta { font-size: 0.8rem; color: var(--gray); margin-top: 10px; }

/* ---------- Partidos ---------- */
.match-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #e7ece8;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.match-teams { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.05rem; }
.match-teams .vs { color: var(--gray); font-weight: 400; }
.match-info { text-align: right; }
.match-info .date { font-weight: 700; }
.match-info .comp { font-size: 0.82rem; color: var(--gray); }
.score {
    background: var(--dark);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
}
.match-points-label { margin-top: 4px; color: var(--gray); font-size: .78rem; font-weight: 700; }
.series-results {
    margin: -2px 0 18px;
    padding: 18px 20px;
    border: 1px solid #e7ece8;
    border-radius: 0 0 var(--radius) var(--radius);
    background: #fbfdfb;
}
.series-results-title { margin: 0 0 12px; color: var(--gray); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.series-results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; }
.series-result-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; background: var(--white); font-size: .88rem; }
.series-result-item strong { color: var(--primary-dark); white-space: nowrap; }
.result-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
}
.result-victoria { background: var(--primary-dark); }
.result-derrota { background: #c0392b; }
.result-empate { background: #7f8c8d; }
.match-status {
    display: inline-block;
    margin: 10px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.match-status-suspended { background: #fff1d9; color: #8a4b00; }
.match-suspension-note { margin: 8px 0 0; color: #8a4b00; font-size: .88rem; line-height: 1.4; }
.strip-card-accent .match-suspension-note { color: #ffe2a8; }
.section-suspended { background: #fffaf1; border-block: 1px solid #f2dfbc; }
.match-card-suspended { border-color: #f0d6a7; }

/* ---------- Producto detalle ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.price-tag { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.stock-ok { color: var(--primary-dark); font-weight: 700; }
.stock-out { color: #c0392b; font-weight: 700; }

/* ---------- Filtros / tabs ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters a {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid #dfe3e0;
    font-size: 0.88rem;
    font-weight: 600;
}
.filters a.active { background: var(--primary); border-color: var(--primary); color: #0d130f; }

/* ---------- Sección "¿Eres socio? / Dona" (CTA final) ---------- */
.cta-section {
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 70px 0;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(9,26,17,0.82), rgba(20,60,38,0.55));
}
.cta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.cta-grid-single { grid-template-columns: 1fr; }
.cta-col { color: var(--white); }
.cta-col h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
}
.cta-col .btn-outline {
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    border: none;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.cta-col .btn-outline:hover { background: var(--accent); color: var(--dark); }
.cta-col.cta-right { text-align: right; }

/* ---------- Footer ---------- */
footer {
    background: var(--dark);
    color: #c9cdd1;
    padding: 40px 0 24px;
    margin-top: 0;
}
footer h4 { color: var(--white); margin-bottom: 12px; }
footer a:hover { color: var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
}
.social-links a:hover { background: var(--primary); color: #0d130f; }
.copyright { text-align: center; margin-top: 30px; font-size: 0.8rem; color: #7d8388; border-top: 1px solid #262b30; padding-top: 18px; }

/* ---------- Detalle artículo ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.article-body h1 { font-size: 2.1rem; margin-bottom: 8px; }
.article-meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 26px; }
.article-content { font-size: 1.05rem; }
.article-content p { margin-bottom: 18px; }

/* ---------- Carrito de compras ---------- */
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #eef0ee; }
.cart-table th { background: var(--light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--gray); }
.cart-product-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.cart-product-cell img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.cart-qty-form { display: flex; align-items: center; gap: 8px; }
.cart-qty-form input[type=number] { width: 60px; padding: 6px 8px; border: 1px solid #dfe3e0; border-radius: 6px; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }
.cart-remove-btn { background: transparent; border: none; color: #c0392b; font-size: 1.1rem; cursor: pointer; font-weight: 700; }
.cart-summary { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cart-total { font-size: 1.3rem; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Agregar al carrito (detalle de producto) ---------- */
.add-to-cart-form { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.qty-label { font-weight: 600; }
.qty-input { width: 70px; padding: 8px; border: 1px solid #dfe3e0; border-radius: 6px; }

/* ---------- Formularios simples (checkout, socios, donación) ---------- */
.simple-form { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); max-width: 560px; }
.simple-form .form-row { margin-bottom: 18px; }
.simple-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.simple-form input[type=text],
.simple-form input[type=email],
.simple-form input[type=tel],
.simple-form input[type=number],
.simple-form input[type=date],
.simple-form textarea,
.simple-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5dad6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.simple-form textarea { resize: vertical; }
.simple-form input:focus, .simple-form textarea:focus, .simple-form select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(110,176,91,0.25);
}
.form-error { color: #c0392b; font-size: 0.85rem; margin-top: 4px; }
.form-note { font-size: 0.85rem; color: var(--gray); margin-top: 16px; }

.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.checkout-summary { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.checkout-summary h3 { margin-top: 0; }
.checkout-summary-list { list-style: none; padding: 0; margin: 0 0 16px; }
.checkout-summary-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eef0ee; font-size: 0.92rem; }

/* ---------- Caja de éxito (pedido/socio/donación confirmados) ---------- */
.success-box { max-width: 560px; margin: 0 auto; text-align: center; background: var(--white); border-radius: var(--radius); padding: 44px 32px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.6rem; margin-bottom: 16px; }
.bank-details-box { background: var(--light); border-radius: 10px; padding: 18px; margin-top: 20px; text-align: left; }
.bank-details-box h4 { margin: 0 0 8px; }

/* ---------- Ícono del carrito en el navbar ---------- */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
    background: var(--accent);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; text-align: left !important; }
    .cta-col.cta-right { text-align: left; }
    .news-magazine-grid { grid-template-columns: 1fr; }
    .news-featured { min-height: 260px; }
    .matches-strip { margin-top: -40px; }
}
@media (max-width: 720px) {
    .topbar-inner { min-height: 60px; }
    .sponsor-strip { gap: 8px; }
    .sponsor-strip img { width: 28px; height: 28px; }
    .nav-toggle { display: grid; place-items: center; position: absolute; right: 52px; top: 8px; width: 42px; height: 42px; border-radius: 10px; }
    .nav-toggle:hover { background: var(--light); }
    .navbar .container { justify-content: flex-start; }
    .nav-links {
        position: absolute;
        top: 58px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px 20px 20px;
        display: none;
        border-bottom: 1px solid #e3e6e2;
        box-shadow: 0 12px 24px rgba(15, 42, 27, 0.12);
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 9px 8px; border-bottom-width: 0; border-left: 3px solid transparent; }
    .nav-links a:hover, .nav-links a.active { background: var(--light); border-left-color: var(--accent); }
    .nav-links a.nav-cta { margin-left: 0; align-self: flex-start; margin-top: 8px; }
    .cart-fab { position: absolute; right: 0; width: 38px; height: 38px; }
    .hero-logo { max-width: 74px; }
    .hero-carousel { min-height: 540px; }
    .hero-carousel .hero-carousel-content { padding-bottom: 76px; }
    .hero-carousel .hero-logo { width: 78px; height: 78px; margin-bottom: 16px; }
    .hero-carousel-slide::before { background: linear-gradient(90deg, rgba(4, 24, 13, .86), rgba(4, 24, 13, .62)); }
    .match-card { flex-direction: column; align-items: flex-start; }
    .match-info { text-align: left; }
    .teams-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 10px; }
    .teams-track { padding: 4px; }
    .team-item { flex-basis: 100%; min-width: 0; }
    .brand-text { display: none; }
    .strip-card { padding: 18px; }
    .strip-row { align-items: flex-start; flex-wrap: wrap; }
    .news-featured-overlay { padding: 24px 18px 18px; }
    .news-featured-overlay h3 { font-size: 1.18rem; }
    .simple-form, .success-box { padding: 24px 18px; }
    .cart-summary { align-items: stretch; }
    .cart-actions { width: 100%; }
    .cart-actions .btn { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
    .container { width: min(100% - 28px, 1160px); }
    .topbar-inner { gap: 12px; }
    .sponsor-strip a:nth-child(n+4), .sponsor-strip > img:nth-child(n+4) { display: none; }
    .hero { text-align: left; }
    .hero .hero-logo { margin-left: 0; }
    .hero p { margin-left: 0; }
    .hero-carousel { min-height: 510px; }
    .hero-carousel h1 { font-size: 2.18rem; }
    .hero-carousel-controls { bottom: 20px; gap: 12px; }
    .matches-strip { margin-top: -26px; }
    .matches-strip-inner, .shop-banners-grid { gap: 14px; }
    .section-header { margin-bottom: 20px; }
    .news-side-item { align-items: flex-start; }
    .news-side-item img { width: 72px; height: 64px; }
    .teams-section { padding: 48px 0; }
    .teams-track { gap: 16px; }
    .team-item, .team-photo { width: 100%; }
    .team-photo { height: auto; }
    .carousel-arrow { width: 36px; height: 36px; }
    .product-detail { gap: 24px; }
    .cta-section { padding: 52px 0; }
    .cta-col h3 { font-size: 1.28rem; }
}
