/*
Theme Name: SRP Diamante
Theme URI: https://srpsports.com
Author: SRP Sports
Description: Tema de SRP Sports basado en la propuesta de diseño "Diamante" (opción 3): claro, limpio y atlético.
Version: 1.0.15
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: srp-diamante
*/

/* ---------- Fuentes alojadas en el tema ---------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/anton-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/anton-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(assets/fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(assets/fonts/inter-tight-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f3f1ec;
  --white: #ffffff;
  --ink: #0b1026;
  --ink-2: #353a52;
  --muted: #6b7086;
  --line: #e1ddd4;
  --red: #d41f1f;
  --red-dark: #b0151a;
  --blue: #2d2a77;
  --celeste: #0067c6;
  --verde: #0f8a5f;
  --naranja: #e2620e;
  --purple: #5b2a86;
  --gold: #e9a800;
  --navy: #0b1026;
  --grad: linear-gradient(90deg, #d41f1f 0%, #c21e36 40%, #5b2a86 72%, #2d2a77 100%);
  --display: "Anton", Impact, sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --wrap: 1360px;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-abierto { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.d { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.label { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.lp { color: var(--red); } .po { color: var(--gold); } .ma { color: var(--purple); } .fu { color: var(--blue); } .bn { color: var(--celeste); } .in { color: var(--verde); } .bb { color: var(--ink); } .pu { color: var(--naranja); } .ml { color: var(--celeste); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 999px; }
.sin-foto { width: 100%; height: 100%; background: var(--navy) url(assets/img/srp-marca.png) center / 34% no-repeat; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 700 14px/1 var(--body); border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap; min-height: 44px; }
.btn .i { width: 16px; height: 16px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: #fff; color: var(--ink); }
.btn-out { border-color: var(--ink); }
.btn-out:hover { background: var(--ink); color: #fff; }

/* ---------- Barra superior + cabecera ---------- */
.topline { background: var(--red); color: #fff; font-size: 13px; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 20px; }
.topline b { font-weight: 700; }
.topline .soc { display: flex; flex: none; margin-left: auto; }
.topline .soc a { display: grid; place-items: center; width: 30px; height: 38px; }
.topline .soc .i { width: 15px; height: 15px; }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .header { top: 32px; }
.header .wrap { display: flex; align-items: center; gap: 30px; height: 78px; }
.header .logo img { height: 44px; width: auto; }
.nav { margin-right: auto; margin-left: 20px; }
.nav > ul { display: flex; gap: 26px; list-style: none; }
.nav li { position: relative; }
.nav a { display: block; white-space: nowrap; font: 700 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav a:hover { color: var(--red); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current-post-ancestor > a, .nav .current-category-ancestor > a { color: var(--ink); border-color: var(--red); }
/* Submenús: se abren al pasar el mouse o con el botón ▾; los de más adentro salen hacia el costado. */
.nav .menu-item-has-children { display: flex; align-items: center; gap: 2px; }
.sub-btn { display: grid; place-items: center; width: 22px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; transition: color .2s; }
.sub-btn:hover, .sub-btn[aria-expanded="true"] { color: var(--red); }
.sub-btn .i { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.sub-btn[aria-expanded="true"] .i { transform: rotate(-90deg); }
.nav .sub-menu { position: absolute; z-index: 60; top: 100%; left: -16px; min-width: 240px; margin-top: 24px; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(11,16,38,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; }
.nav li.abierto > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s, visibility 0s; }
@media (hover: hover) {
  .nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s, visibility 0s; }
}
.nav .sub-menu a { flex: 1; padding: 12px 14px; border: 0; border-radius: 10px; letter-spacing: .04em; }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { background: var(--bg); color: var(--red); }
.nav .sub-menu .sub-btn { margin-right: 6px; }
.nav .sub-menu .sub-btn .i { transform: none; }
.nav .sub-menu .sub-menu { top: -9px; left: 100%; margin: 0 0 0 10px; }
.nav .sub-menu .sub-menu::before { inset: 0 auto 0 -12px; width: 12px; height: auto; }
/* Los dos últimos del menú abren alineados a la derecha para no salirse de la pantalla. */
.nav > ul > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: -16px; }
.nav > ul > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; margin: 0 10px 0 0; }
.nav > ul > li:nth-last-child(-n+2) .sub-menu .sub-menu::before { inset: 0 -12px 0 auto; }
.buscador { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); width: 220px; color: var(--muted); }
.buscador input { border: 0; background: none; outline: none; min-width: 0; flex: 1; align-self: stretch; font-size: 14px; color: var(--ink); }
.buscador:focus-within { border-color: var(--red); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; place-items: center; cursor: pointer; }
.drawer { position: fixed; inset: 0; background: var(--white); z-index: 80; padding: 24px; transform: translateX(100%); visibility: hidden; transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s .4s; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer.open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s; }
.admin-bar .drawer { top: 46px; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.drawer .top .menu-btn { display: grid; }
.drawer .top img { height: 38px; width: auto; }
.drawer ul { list-style: none; }
.drawer a.big, .drawer ul a { display: block; font: 400 40px/1.2 var(--display); text-transform: uppercase; padding: 2px 0; }
.drawer ul a:hover, .drawer .current-menu-item > a { color: var(--red); }
.drawer .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.drawer .menu-item-has-children > a { flex: 1; min-width: 0; }
.drawer .sub-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.drawer .sub-btn .i { width: 18px; height: 18px; }
.drawer .sub-menu { display: none; flex-basis: 100%; margin: 2px 0 10px 4px; padding-left: 18px; border-left: 2px solid var(--red); }
.drawer .abierto > .sub-menu { display: block; }
.drawer .sub-menu a { font-size: 26px; }
.drawer .sub-menu .sub-btn { width: 38px; height: 38px; }
.drawer .buscador { width: 100%; height: 50px; margin: 22px 0 14px; }
.drawer .buscador input { font-size: 16px; }
.drawer .drawer-pie { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 24px; }
.drawer .socials a { background: var(--bg); }

/* ---------- Hero estilo VANTAGE ---------- */
.hero { padding: 16px 0 0; }
.hero-box { position: relative; height: min(84vh, 800px); min-height: 600px; border-radius: 26px; overflow: hidden; color: #fff; background: var(--navy); container-type: inline-size; }
.hero-box > img, .hero-box > .sin-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,38,.35), rgba(11,16,38,0) 30%, rgba(11,16,38,.05) 55%, rgba(11,16,38,.78)); }
.hero-top { position: absolute; z-index: 2; top: 28px; left: 32px; right: 32px; display: flex; justify-content: space-between; gap: 16px; }
.hero-top span { font: 700 12px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.hero-title { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-62%); text-align: center; font-size: min(210px, 13.6cqi, calc(176cqi / var(--n, 15)), calc(clamp(600px, 84vh, 800px) * .2)); white-space: nowrap; text-shadow: 0 8px 50px rgba(11,16,38,.35); padding: 0 16px; pointer-events: none; }
.hero-bottom { position: absolute; z-index: 2; left: 32px; right: 32px; bottom: 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; }
.hero-bottom h1 { font: 600 clamp(20px, 2vw, 28px)/1.2 var(--body); letter-spacing: -.02em; max-width: 620px; margin: 10px 0 20px; }
.hero-bottom h1 a { padding: 10px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-bottom h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-bottom .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.glass-card { width: 330px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.glass-card .label { opacity: .85; }
.glass-card .teams { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; }
.glass-card .teams b { font: 400 44px/1 var(--display); }
.glass-card .teams small { font-size: 12px; opacity: .8; }
.glass-card .row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; opacity: .92; }
.glass-card .row span { display: inline-flex; gap: 6px; align-items: center; }
.glass-card .row .i { width: 14px; height: 14px; }

}
@media (1180px < width < 1440px) {
  /* 8 enlaces en el menú: cabecera más compacta. */
  .header .wrap { gap: 20px; }
  .nav { margin-left: 4px; }
  .nav > ul { gap: 18px; }
  .header .buscador { width: 180px; }
}
@media (1180px < width < 1300px) {
  .nav > ul { gap: 14px; }
  .nav a { letter-spacing: .04em; }
  .header .buscador { width: 160px; }
}

/* ---------- Secciones ---------- */
section { padding: 90px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head h1, .sec-head h2 { font-size: clamp(44px, 5.4vw, 80px); }
.sec-head p { color: var(--muted); max-width: 300px; font-size: 15px; }
.archivo-head p { max-width: 720px; font-size: 17px; margin-top: 16px; }
.archivo-head h1 { font-size: clamp(34px, 11.5vw, 80px); overflow-wrap: break-word; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 13px 0; background: linear-gradient(var(--red), var(--red)) left bottom 10px / 100% 2px no-repeat; }
.link:hover { color: var(--red); gap: 12px; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; }
.filter span { font-size: 14px; color: var(--muted); margin-right: 8px; }
.filter button { min-height: 44px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--red); background: none; color: var(--red); font-weight: 600; font-size: 13px; cursor: pointer; transition: .2s; }
.filter button.active, .filter button:hover { background: var(--red); color: #fff; }

/* Rejilla tipo blog */
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 30px; }
.post { display: block; }
.post .img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/11; margin-bottom: 18px; }
.post .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .img img { transform: scale(1.05); }
.post h3, .post h2 { font: 800 21px/1.18 var(--body); text-transform: uppercase; letter-spacing: -.01em; margin: 10px 0 10px; overflow-wrap: break-word; }
.post:hover h3, .post:hover h2 { color: var(--red); }
.post p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.post .meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.post.hide { display: none; }
.mas { text-align: center; margin-top: 50px; }
.vacio { color: var(--muted); font-size: 17px; }

/* Paginación */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 14px; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .dots { border: 0; background: none; }

/* Destacado + lista (Liga Profesional) */
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.feat-main { display: block; }
.feat-main .img { border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; }
.feat-main .img img { width: 100%; height: 100%; object-fit: cover; }
.feat-main .label { display: block; margin-top: 22px; }
.feat-main h3 { font: 400 clamp(32px, 3.2vw, 48px)/1 var(--display); text-transform: uppercase; margin: 22px 0 12px; }
.feat-main .label + h3 { margin-top: 12px; }
.feat-main:hover h3 { color: var(--red); }
.feat-main p { color: var(--muted); font-size: 17px; max-width: 620px; }
.list a { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); align-items: center; }
.list a:first-child { border-top: 0; padding-top: 0; }
.list a img, .list a .sin-foto { width: 140px; aspect-ratio: 4/3; height: auto; object-fit: cover; border-radius: 12px; }
.list h4 { font: 800 18px/1.25 var(--body); text-transform: uppercase; margin: 8px 0; }
.list a:hover h4 { color: var(--red); }
.list small { color: var(--muted); font-size: 13px; }

/* Bloque "Sobre" estilo Stride */
.about { background: var(--navy); color: #fff; border-radius: 26px; padding: 70px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 50px; position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -200px; background: radial-gradient(circle, rgba(212,31,31,.45), transparent 65%); }
.about::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; left: 20%; bottom: -300px; background: radial-gradient(circle, rgba(91,42,134,.5), transparent 65%); }
.about > * { position: relative; z-index: 1; }
.about h2 { font: 300 clamp(30px, 3.6vw, 54px)/1.08 var(--body); letter-spacing: -.035em; }
.about h2 b { font-weight: 700; }
.about .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 30px; }
.about .nums b { display: block; font: 400 56px/1 var(--display); }
.about .nums span { font-size: 14px; color: rgba(255,255,255,.7); }

/* Dos columnas: Mayor A + Fútbol */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.duo-col { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 34px; }
.duo-col .sec-head h2 { font-size: clamp(30px, 9vw, 44px); }
.duo.uno { grid-template-columns: minmax(0, 1fr); }
.duo-col > a { display: block; }
.mini { display: grid !important; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.mini img, .mini .sin-foto { width: 110px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.mini h4 { font: 700 17px/1.3 var(--body); margin-bottom: 4px; }
.mini:hover h4 { color: var(--red); }
.mini small { color: var(--muted); font-size: 13px; }
.duo-col .big-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 16px; position: relative; }
.duo-col .big-img img { width: 100%; height: 100%; object-fit: cover; }
.duo-col .big-img .chip { position: absolute; left: 14px; top: 14px; background: #fff; padding: 6px 10px; border-radius: 999px; }
.duo-col h3 { font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.duo-col > a:hover h3 { color: var(--red); }

/* Boletín + pie */
.news-band { background: var(--red); color: #fff; border-radius: 26px; padding: 60px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.news-band > * { position: relative; z-index: 1; }
.news-band h2 { font-size: clamp(40px, 4.4vw, 68px); overflow-wrap: break-word; }
.news-band p { opacity: .9; margin-top: 12px; }
.news-band form { display: flex; gap: 6px; background: #fff; border-radius: 999px; padding: 6px; }
.news-band input[type=email] { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 18px; color: var(--ink); background: none; min-height: 44px; }
.news-band .aviso { grid-column: 1 / -1; }
.news-band .ball { position: absolute; z-index: 0; right: -60px; bottom: -80px; width: 260px; height: 260px; opacity: .14; color: #fff; }
.footer { background: var(--navy); color: #fff; margin-top: 90px; padding: 70px 0 30px; }
.footer.sin-margen { margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer img.logo-f { height: 50px; width: auto; margin-bottom: 16px; }
.footer p { color: rgba(255,255,255,.65); font-size: 15px; max-width: 320px; }
.footer h5 { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: rgba(255,255,255,.88); }
.footer ul a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: .2s; }
.socials a:hover { background: var(--red); color: #fff; }
.footer .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.55); }

/* Avisos de formularios */
.aviso { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.aviso.ok { background: #e8f7ee; color: #166534; border-color: #bbe5ca; }
.aviso.error { background: #fdecec; color: #8f1414; border-color: #f3c3c3; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================
   NOTICIA
   ========================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { padding: 12px 0; }
.crumbs a:hover { color: var(--red); }
.crumbs .i { width: 12px; height: 12px; }
.art-head { padding: 22px 0 34px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; align-items: end; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--red); color: #fff; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.pill .i { width: 14px; height: 14px; }
.art-head h1 { font-size: clamp(44px, 5.6vw, 86px); margin: 20px 0 20px; overflow-wrap: break-word; }
.art-head .dek { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 860px; }
.art-meta { border-left: 1px solid var(--line); padding-left: 30px; display: grid; gap: 16px; font-size: 14px; color: var(--muted); }
.art-meta .who { display: flex; gap: 12px; align-items: center; }
.art-meta .av { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--ink) url(assets/img/srp-marca.png) center/76% no-repeat; }
.art-meta b { color: var(--ink); display: block; font-size: 15px; }
.art-meta .share { display: flex; gap: 8px; }
.art-meta .share a, .art-meta .share button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--white); transition: .2s; cursor: pointer; }
.art-meta .share a:hover, .art-meta .share button:hover, .art-meta .share .copiado { background: var(--red); color: #fff; border-color: var(--red); }
.art-hero { border-radius: 26px; overflow: hidden; height: min(72vh, 680px); }
.art-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.art-cap { font-size: 13px; color: var(--muted); margin-top: 12px; }
.art-body { display: grid; grid-template-columns: 260px minmax(0, 720px) 1fr; gap: 60px; padding: 60px 0 40px; }
.art-body.sin-toc { grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); }
.art-body.sin-toc .prose { grid-column: 2; }
.toc { position: sticky; top: 110px; align-self: start; }
.toc h5 { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 4px; }
.toc li a { display: grid; grid-template-columns: 30px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.toc li a::before { counter-increment: t; content: counter(t, decimal-leading-zero); color: var(--red); font: 400 16px/1.3 var(--display); }
.toc li a:hover { color: var(--red); }
.prose { font-size: 19px; line-height: 1.72; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.2em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { font: 400 40px/1 var(--display); text-transform: uppercase; color: var(--ink); margin-top: 1.6em; scroll-margin-top: 110px; }
.prose h3 { font: 800 24px/1.2 var(--body); text-transform: uppercase; color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.key, .prose .is-style-datos-clave { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; padding: 26px 28px; }
.key h4 { font: 400 24px/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.key ul { list-style: none; display: grid; gap: 10px; font-size: 17px; }
.key li { display: flex; gap: 12px; align-items: flex-start; }
.key li .i { color: var(--red); margin-top: 5px; }
.prose .is-style-datos-clave { list-style: none; display: grid; gap: 10px; font-size: 17px; }
.prose .is-style-datos-clave::before { content: "Datos clave"; display: block; font: 400 24px/1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.prose .is-style-datos-clave li { position: relative; padding-left: 30px; margin: 0; }
.prose .is-style-datos-clave li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.prose blockquote { position: relative; padding: 10px 0 10px 70px; border: 0; margin-inline: 0; }
.prose blockquote::before { content: "“"; position: absolute; left: 0; top: -6px; font: 400 110px/1 var(--display); color: var(--red); }
.prose blockquote p { font: 400 clamp(30px, 3.2vw, 42px)/1.04 var(--display); text-transform: uppercase; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: var(--muted); }
.prose figure img, .prose .wp-block-image img { border-radius: 18px; }
.prose figcaption, .wp-element-caption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: left; }
.prose figure { margin-inline: 0; }
.prose .wp-block-embed iframe { max-width: 100%; }
.prose iframe { max-width: 100%; }
.stats4, .prose .is-style-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stats4 div, .prose .is-style-cifras li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.stats4 b { display: block; font: 400 40px/1 var(--display); color: var(--red); }
.stats4 span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 6px; }
.prose .is-style-cifras { list-style: none; padding: 0; }
.prose .is-style-cifras li { margin: 0; }
.prose .is-style-cifras strong { display: block; font: 400 40px/1 var(--display); color: var(--red); margin-bottom: 6px; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.tags a:hover { border-color: var(--red); color: var(--red); }

/* Página genérica, archivo y 404 */
.page-head { padding: 50px 0 10px; }
.page-head h1 { font-size: clamp(48px, 6.4vw, 100px); }
.page-head p { color: var(--muted); font-size: 18px; max-width: 720px; margin-top: 14px; }
.page-body { padding: 30px 0 90px; }
.page-body .prose { max-width: 760px; }
.archivo { padding-top: 40px; }
.e404 { text-align: center; padding: 80px 0 40px; }
.e404 .d { font-size: clamp(110px, 22vw, 260px); color: var(--red); }
.e404 h1 { font: 800 clamp(24px, 3vw, 34px)/1.2 var(--body); text-transform: uppercase; margin: 16px 0 10px; }
.e404 p { color: var(--muted); }
.e404 .buscador { margin: 28px auto 20px; width: min(420px, 100%); height: 50px; }

/* ==========================================================
   CONTACTO
   ========================================================== */
.c-hero { position: relative; min-height: 520px; border-radius: 26px; overflow: hidden; margin-top: 16px; display: flex; align-items: center; background: var(--navy); }
.c-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero .box { position: relative; z-index: 1; margin: 40px 0 40px 60px; max-width: 640px; padding: 44px; border-radius: 18px; background: rgba(11,16,38,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.c-hero h1 { font-size: clamp(48px, 6vw, 88px); margin: 12px 0 14px; overflow-wrap: break-word; }
.c-hero p { color: rgba(255,255,255,.86); font-size: 18px; margin-bottom: 24px; }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 30px; padding: 60px 0 30px; align-items: start; }
.c-info h2 { font-size: clamp(40px, 4.4vw, 54px); margin-bottom: 14px; }
.c-info > p { color: var(--muted); margin-bottom: 26px; font-size: 17px; }
.c-item { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.c-item > div { min-width: 0; }
.c-item .ic { width: 50px; height: 50px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.c-item small { display: block; font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.c-item b { font-size: 17px; overflow-wrap: anywhere; }
.c-item b a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.check a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.c-item a:hover { color: var(--red); }
.c-info .socials { margin-top: 22px; }
.c-info .socials a { background: var(--white); border: 1px solid var(--line); }
.c-info .socials a:hover { background: var(--red); color: #fff; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: 0 30px 60px rgba(11,16,38,.06); position: relative; }
.form h3 { font: 400 34px/1 var(--display); text-transform: uppercase; margin-bottom: 24px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); outline: none; transition: .2s; font-size: 16px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(212,31,31,.1); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--red); }
.form .foot { display: flex; justify-content: flex-end; margin-top: 22px; }
.depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 40px 0 0; }
.dept { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 30px; transition: .25s; }
.dept:hover { border-color: var(--red); box-shadow: 0 16px 34px rgba(11,16,38,.08); }
.dept .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fbe9e9; color: var(--red); margin-bottom: 20px; }
.dept h3 { font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.dept p { color: var(--muted); margin-bottom: 8px; }
.faq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 50px; }
.faq h2 { font-size: clamp(40px, 4.4vw, 54px); }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 800 18px/1.3 var(--body); text-transform: uppercase; padding: 11px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--red); transition: .3s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header .buscador { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .duo { gap: 16px; }
  .duo-col { padding: 24px; }
  .duo-col .sec-head h2 { font-size: 38px; }
  .mini { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .mini img, .mini .sin-foto { width: 84px; }
  .feat, .c-grid, .faq, .art-head { grid-template-columns: minmax(0, 1fr); }
  .feat-main .img { aspect-ratio: 16/9; }
  .art-meta { border-left: 0; padding-left: 0; }
  .art-body, .art-body.sin-toc { grid-template-columns: minmax(0, 1fr); }
  .art-body.sin-toc .prose { grid-column: auto; }
  .art-body > .spacer { display: none; }
  .toc { position: static; }
  .about { grid-template-columns: minmax(0, 1fr); padding: 50px 34px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
  .admin-bar .header { top: 0; }
}
@media (max-width: 1023px) {
  .glass-card { display: none; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .topline .hide-m { display: none; }
  .topline .wrap { gap: 10px; }
  .topline .wrap > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-box { height: 620px; min-height: 0; border-radius: 20px; }
  .hero-top { left: 20px; right: 20px; top: 22px; }
  .hero-title { font-size: min(20vw, 120px, calc(320vw / var(--n, 15)), calc(150vw / var(--w, 6))); white-space: normal; top: 40%; padding: 0 8px; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); left: 20px; right: 20px; bottom: 24px; }
  .glass-card { display: none; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .list a { grid-template-columns: minmax(0, 1fr) 100px; }
  .list a img, .list a .sin-foto { width: 100px; }
  .about .nums { grid-template-columns: 1fr 1fr; }
  .news-band { grid-template-columns: minmax(0, 1fr); padding: 40px 26px; gap: 26px; }
  .footer .cols { grid-template-columns: 1fr; }
  .stats4, .prose .is-style-cifras { grid-template-columns: 1fr 1fr; }
  .c-hero { min-height: 0; }
  .c-hero .box { margin: 20px; padding: 28px; max-width: none; }
  .fgrid, .depts { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 26px 20px; }
  .duo-col { padding: 24px; }
  .prose { font-size: 17px; }
  .prose blockquote { padding-left: 50px; }
  .prose blockquote::before { font-size: 84px; }
  .prose .alignleft, .prose .alignright { float: none; margin: 0; max-width: 100%; }
  section { padding: 70px 0; }
  .footer { margin-top: 70px; }
}
@media (max-width: 520px) {
  .rejilla { grid-template-columns: minmax(0, 1fr); }
  .news-band form { flex-direction: column; border-radius: 22px; padding: 8px; }
  .news-band input[type=email] { padding: 0 14px; }
  .news-band form .btn { justify-content: center; }
  .art-hero { height: 300px; border-radius: 20px; }
  .art-head .dek { font-size: 18px; }
}
@media (max-width: 380px) {
  .hero-top span + span { display: none; }
  .drawer a.big, .drawer ul a { font-size: 34px; }
  .c-hero .box { margin: 10px; padding: 20px; }
  .c-hero h1 { font-size: 11.5vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.archivo > .buscador { width: min(520px, 100%); height: 50px; margin: -6px 0 40px; }
