:root {
    --azul: #1342a8;
    --azul-osc: #0b2a73;
    --navy: #0c1733;
    --navy-2: #16234a;
    --fondo: #f3f4f7;
    --texto: #1b1f2a;
    --gris: #6b7280;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Roboto, system-ui, sans-serif; color: var(--texto); background: var(--fondo); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, .btn, .nav a { font-family: Oswald, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.wrap.wide { width: min(1280px, 100% - 32px); } /* slider y bloque oscuro, como en la maqueta */
.muted { color: var(--gris); font-size: 13px; }
.link { display: block; text-align: center; color: var(--azul); font-size: 12px; text-decoration: underline; margin-top: 14px; }
.btn { display: inline-block; background: var(--azul); color: #fff; padding: 10px 22px; border-radius: 2px; font-size: 13px; border: 0; cursor: pointer; }
.btn:hover { background: var(--azul-osc); }
.btn-sm { padding: 6px 18px; font-size: 11px; }
.ph { display: grid; place-items: center; background: linear-gradient(135deg, #e9eefb, #cdd9f5); }
.ph img { width: 30%; max-width: 140px; opacity: .55; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 #e5e7eb; --c: calc(max(16px, (100% - 1140px) / 2) + 67px) calc(50% + 23px);
    /* anillos concéntricos que salen del escudo, desvanecidos hacia afuera */
    background: radial-gradient(circle at var(--c), #fff0 40px, #fff 230px), repeating-radial-gradient(circle at var(--c), #fff0 0 13px, #1342a833 13px 14px), #fff; }
.header-in { display: flex; align-items: center; gap: 36px; min-height: 146px; }
.brand img { height: 134px; margin-bottom: -46px; position: relative; filter: drop-shadow(0 2px 4px #0003); }
.header-right { flex: 1; }
.topbar { display: flex; justify-content: flex-end; gap: 14px; padding: 14px 0 10px; }
.ico { width: 18px; height: 18px; background: var(--gris); -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; display: inline-block; }
.ico:hover { background: var(--azul); }
/* al bajar, la cabecera fija se compacta para no tapar la página */
@media (min-width: 861px) {
    .header-in, .brand img { transition: min-height .25s, height .25s, margin .25s; }
    .header.compact { --c: calc(max(16px, (100% - 1140px) / 2) + 38px) calc(50% + 10px); box-shadow: 0 2px 12px #0002; }
    .header.compact .header-in { min-height: 80px; }
    .header.compact .brand img { height: 76px; margin-bottom: -20px; }
    .header.compact .topbar { display: none; }
    .header.compact .nav { padding: 0; }
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 32px; padding: 14px 0 24px; font-size: 16px; }
.nav a:hover { color: var(--azul); }
.nav .btn { margin-left: auto; color: #fff; font-size: 13px; padding: 8px 20px; }
.burger { display: none; }
.dropdown { position: relative; }
.dropdown-btn { font: 16px Oswald, sans-serif; text-transform: uppercase; letter-spacing: .02em; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 200px; padding: 8px 0; background: #fff; box-shadow: 0 10px 30px #0b2a7326; border-top: 3px solid var(--azul); z-index: 20; }
.dropdown-menu a { display: block; padding: 8px 16px; }
.dropdown-menu a:hover { background: #f3f6fd; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown::after { content: ""; position: absolute; inset: 100% -16px auto; height: 12px; } /* hover bridge */

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--azul-osc); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 2/1; max-height: 640px; width: 100%; }
.hero-slide > img, .hero-slide > .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, #0b2a73dd); }
.hero-text { position: absolute; left: 6%; right: 25%; bottom: 14%; color: #fff; z-index: 1; }
.hero-text h1 { margin: 0; font-size: clamp(22px, 3vw, 40px); line-height: 1.1; }
.hero-text p { margin: 8px 0 0; font-size: 15px; opacity: .9; }
.hero-btn { position: absolute; right: 6%; bottom: 14%; z-index: 1; }
.hero-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff9; font-size: 22px; cursor: pointer; }
.hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
.hero-dots { position: absolute; bottom: 10px; width: 100%; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: #fff6; }
.hero-dots span.on { background: #fff; }

/* Partido + tabla */
.match-box { display: grid; grid-template-columns: 1fr 1.3fr; background: #fff; margin-top: -40px; position: relative; z-index: 3; width: min(1140px, 100% - 32px); box-shadow: 0 4px 20px #0001; }
.match-box.no-hero { margin-top: 40px; }
.match, .table { padding: 24px 32px; }
.match { border-right: 1px solid #e5e7eb; text-align: center; }
.match h3, .table h3 { margin: 0 0 8px; font-size: 20px; text-align: center; }
.vs { display: flex; align-items: center; justify-content: space-around; gap: 10px; margin: 14px 0; }
.team { display: grid; justify-items: center; gap: 8px; font-family: Oswald, sans-serif; font-size: 15px; text-transform: uppercase; width: 40%; }
.team img, .team .ph { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; }
.team .ph img { width: 60%; }
.score { font-family: Oswald, sans-serif; font-size: 30px; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-size: 11px; color: var(--gris); font-weight: 500; }
td, th { padding: 8px 4px; text-align: center; }
tr + tr td { border-top: 1px solid #f0f0f0; }
.tname { text-align: left; display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-size: 13px; }
.tname img, .tname .ph { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; }
tr.us td { color: var(--azul); font-weight: 700; }

/* Bloques */
.block { padding: 40px 0 0; }
.heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.heading h2 { margin: 0; font-size: 20px; }
.heading a { color: var(--azul); font-size: 13px; padding-left: 14px; border-left: 1px solid #ccc; }
.card { background: #fff; text-align: center; padding-bottom: 20px; }
.card h4 { margin: 14px 12px 4px; font-size: 15px; }
.card p { margin: 0 16px 12px; font-size: 12px; color: var(--gris); }

/* Noticias */
.news-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.post-card { grid-column: span 2; background: #fff; display: flex; flex-direction: column; }
.post-card.big { grid-column: span 3; }
.post-card > img, .post-card > .ph { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card.big .post-meta { margin: -40px 50px 0 14px; position: relative; background: #fff; }
.post-meta { padding: 12px 14px 16px; }
.post-meta small, .video-card small, .album-card small { font-size: 11px; color: var(--gris); }
.post-meta small::after, .video-card small::after { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--azul); margin: 0 0 3px 8px; }
.post-meta h4 { margin: 4px 0 0; font-size: 16px; line-height: 1.3; }
.post-card:hover h4 { color: var(--azul); }

/* Bloque oscuro */
.dark { background: var(--navy); color: #fff; padding: 36px max(16px, (min(1280px, 100% - 32px) - 1140px) / 2) 40px; margin-top: 40px; }
.dark .heading + * { margin-bottom: 32px; }
.dark .heading a { color: #8fb0ff; border-color: #fff3; }
.video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.video-card { background: var(--navy-2); position: relative; padding: 14px; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.video-card:first-child { grid-row: span 2; }
.video-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.video-card > div { position: relative; }
.video-card small { color: #c7cfe3; }
.video-card h4 { margin: 4px 0 0; font-size: 13px; }
.video-card:first-child h4 { font-size: 18px; }
.play { position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.album-card { position: relative; aspect-ratio: 4/4.2; overflow: hidden; }
.album-card > img, .album-card > .ph { width: 100%; height: 100%; object-fit: cover; }
.album-card > div { position: absolute; inset: auto 0 0; padding: 30px 12px 12px; background: linear-gradient(transparent, #000c); }
.album-card small { color: #ddd; }
.album-card h4 { margin: 2px 0 0; font-size: 13px; }

/* Tienda / club / banner */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product > img, .product > .ph { aspect-ratio: 1; object-fit: cover; width: 100%; }
.price { font-weight: 700; color: var(--azul) !important; font-size: 14px !important; }
.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.club-card > img, .club-card > .ph { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.banner > img, .banner > .ph { aspect-ratio: 16/6; object-fit: cover; width: 100%; }

/* Tienda y carrito */
.product { position: relative; }
.sold-out > img { filter: grayscale(1); opacity: .6; }
.badge-soldout { position: absolute; top: 12px; left: 12px; background: #c62828; color: #fff; font: 700 12px Oswald, sans-serif; text-transform: uppercase; padding: 4px 10px; }
.add-form { display: flex; justify-content: center; gap: 6px; padding: 0 12px; }
.add-form select, .add-form input, .cart input, .cart textarea { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 2px; background: #fff; }
.add-form input { width: 56px; }
.shop-intro { margin: -8px 0 20px; }
.shop-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.shop-layout .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cart { position: sticky; top: 100px; text-align: left; padding: 20px; border-top: 3px solid var(--azul); scroll-margin-top: 100px; }
.cart h3 { margin: 0 0 12px; font-size: 16px; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-items li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.cart-items li > span:last-child { grid-column: 2; text-align: right; font-weight: 700; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 24px; height: 24px; border: 1px solid #d1d5db; background: #fff; cursor: pointer; border-radius: 50%; line-height: 1; }
.cart-total { font-size: 16px !important; margin: 14px 0 !important; color: var(--texto) !important; }
.cart-footer { display: grid; gap: 8px; }
.cart-footer[hidden] { display: none; }
.cart-empty { margin: 0 !important; }
.cart-footer p { margin: 0; }
.cart-send { background: #1fa855; } .cart-send:hover { background: #178a45; }
.cart-clear { background: none; border: 0; color: var(--gris); font-size: 12px; text-decoration: underline; cursor: pointer; }
.cart-link { order: 3; position: relative; color: var(--azul); display: grid; place-items: center; width: 40px; height: 40px; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #1fa855; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.toast { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 4px; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px #0004; animation: toast .25s; }
@keyframes toast { from { opacity: 0; translate: -50% 10px; } }

/* Plantel */
.squad-title { font-size: 16px; color: var(--azul); margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #1342a822; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.player { position: relative; background: linear-gradient(180deg, #e9eefb, #fff 70%); overflow: hidden; border-bottom: 3px solid var(--azul); }
.player > img, .player > .ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.player-number { position: absolute; top: 6px; right: 12px; font: 700 44px/1 Oswald, sans-serif; color: var(--azul); opacity: .85; }
.player-info { padding: 10px 12px 12px; background: #fff; }
.player-info small { font-size: 11px; color: var(--gris); text-transform: uppercase; }
.player-info h4 { margin: 2px 0 0; font-size: 15px; }

/* Visor de videos y fotos */
.viewer { width: min(1000px, 100vw - 32px); max-height: 90vh; padding: 0; border: 0; background: none; overflow: visible; }
.viewer::backdrop { background: #050b1ce6; }
.viewer-body { display: grid; place-items: center; }
.viewer-body iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.viewer-body img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.viewer-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.viewer-nav { display: none; position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fffc; font-size: 26px; cursor: pointer; z-index: 1; }
.viewer.gallery .viewer-nav { display: block; }
.viewer-nav.prev { left: 8px; } .viewer-nav.next { right: 8px; }

/* Contacto */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.contact-form, .contact-info { text-align: left; padding: 24px; }
.contact-form form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 2px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #1342a855; border-color: var(--azul); }
.contact-form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { color: #c62828; font-weight: 400; }
.alert-ok { background: #e7f6ec; color: #17683a; border-left: 4px solid #1fa855; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.contact-info { border-top: 3px solid var(--azul); }
.contact-info h3 { margin: 0 0 14px; font-size: 16px; }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; font-size: 14px; }
.contact-info b { display: block; font-size: 11px; color: var(--gris); text-transform: uppercase; font-weight: 500; }
.contact-info a { color: var(--azul); }
.contact-social { display: flex; gap: 12px; }
.contact-social .ico { width: 22px; height: 22px; }

/* Listados e interiores */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.list-grid .post-card { grid-column: auto; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 30px 0; font-size: 13px; }
.article { max-width: 820px; }
.article h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.15; margin: 6px 0 12px; }
.lead { font-size: 18px; color: var(--gris); }
.article-img { width: 100%; margin: 20px 0; }
.prose { font-size: 16px; line-height: 1.7; }
.prose img { height: auto; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.photos img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.fixtures { display: grid; gap: 12px; }
.fixture-row { padding: 16px; }
.fixture-row.past { opacity: .75; }
.fixtures .vs { max-width: 500px; margin-inline: auto; }

/* Auspiciadores + footer */
.partners { background: #fff; margin-top: 50px; padding: 50px 0 110px; text-align: center; }
.partners-title { display: flex; align-items: center; gap: 18px; color: var(--azul); font-size: 15px; margin: 0 0 30px; }
.partners-title::before, .partners-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #fff0, #1342a855); }
.partners-title::after { transform: scaleX(-1); }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-bottom: 20px; }
.partners-row a { display: grid; place-items: center; width: 150px; height: 70px; padding: 10px 14px; filter: grayscale(1) brightness(.75) contrast(1.4); opacity: .85; transition: .2s; }
.partners-row a:hover { filter: none; opacity: 1; }
.partners-row img, .partners-row .ph { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.partners-row.main a { width: 220px; height: 100px; filter: none; opacity: 1; background: #fff; border: 1px solid #e5e7eb; border-top: 3px solid var(--azul); box-shadow: 0 4px 14px #0b2a7314; }
.partners-row.main a:hover { transform: translateY(-3px); box-shadow: 0 8px 22px #0b2a7326; }

.footer { color: #fff; margin-top: 70px; padding-bottom: 0;
    background: repeating-linear-gradient(90deg, #fff0 0 70px, #ffffff07 70px 140px), linear-gradient(var(--azul), var(--azul-osc)); }
.partners + .footer { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-family: Oswald, sans-serif; font-size: 22px; }
.footer-top span:first-child { text-align: right; }
.footer-badge { display: grid; place-items: center; width: 150px; height: 150px; margin-top: -75px; border-radius: 50%; background: #fff; border: 5px solid var(--azul); box-shadow: 0 0 0 6px #fff, 0 10px 30px #0b2a7355; }
.footer-badge img { width: 110px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 40px 0; border-bottom: 1px solid #ffffff26; }
.footer h4 { margin: 0 0 12px; font-size: 14px; }
.footer p, .footer li { font-size: 13px; color: #d6def3; margin: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer .ico { width: 34px; height: 34px; border-radius: 50%; background: #ffffff1f; -webkit-mask: none; mask: none; position: relative; }
.footer .ico::after { content: ""; position: absolute; inset: 9px; background: #fff; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; }
.footer .ico:hover { background: #fff; } .footer .ico:hover::after { background: var(--azul); }
.copy .sep { margin: 0 6px; opacity: .5; }
.dev-credit { color: #fff; font-weight: 700; border-bottom: 1px dotted #ffffff80; }
.dev-credit:hover { border-bottom-style: solid; }
.copy { font-size: 12px; color: #b9c5e6 !important; text-align: center; padding: 16px 0; }

/* Móvil */
@media (max-width: 860px) {
    .cart-link { order: 0; margin-left: auto; }
    .shop-layout, .contact-layout, .field-row { grid-template-columns: 1fr; }
    .cart { position: static; }
    .burger { display: block; order: 1; width: 40px; height: 40px; cursor: pointer; position: relative; }
    .burger span, .burger span::before, .burger span::after { position: absolute; left: 8px; right: 8px; height: 3px; background: var(--azul); content: ""; }
    .burger span { top: 19px; } .burger span::before { top: -8px; left: 0; right: 0; } .burger span::after { top: 8px; left: 0; right: 0; }
    .header-right { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px 16px; box-shadow: 0 8px 20px #0002; }
    #menu:checked ~ .header-right { display: block; }
    .nav { flex-direction: column; align-items: flex-start; gap: 14px; }
    .nav .btn { margin-left: 0; }
    .dropdown-btn { color: var(--gris); pointer-events: none; }
    .dropdown-menu { display: block; position: static; box-shadow: none; border: 0; padding: 4px 0 0 12px; min-width: 0; }
    .dropdown-menu a { padding: 6px 0; }
    .topbar { justify-content: flex-start; order: 2; }
    .brand img { height: 70px; margin-bottom: -18px; }
    .header { --c: 51px calc(50% + 9px); }
    .header-in { min-height: 76px; gap: 16px; }
    .hero-slide { aspect-ratio: 4/3; }
    .hero-arrow { display: none; }
    .hero-text { right: 6%; bottom: 26%; }
    .hero-btn { left: 6%; right: auto; bottom: 10%; }
    .match-box { grid-template-columns: 1fr; margin-top: 0; }
    .match { border-right: 0; border-bottom: 1px solid #e5e7eb; }
    .news-grid, .shop-grid, .club-grid, .list-grid { grid-template-columns: 1fr; }
    .post-card, .post-card.big { grid-column: auto; }
    .video-grid { grid-template-columns: 1fr 1fr; }
    .video-card:first-child { grid-column: span 2; grid-row: auto; min-height: 200px; }
    .album-grid { grid-template-columns: 1fr 1fr; }
    .dark { padding: 24px 16px; width: 100%; }
    .footer-top { grid-template-columns: 1fr; text-align: center; font-size: 18px; gap: 6px; }
    .footer-top span:first-child { text-align: center; order: 2; } .footer-top span:last-child { order: 3; }
    .footer-badge { margin-inline: auto; width: 120px; height: 120px; margin-top: -60px; } .footer-badge img { width: 88px; }
    .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > :first-child { grid-column: span 2; }
    .partners-row.main a { width: 46%; }
}
