/* =========================================================
   Layout exclusivo · Campeonato Interprovincial
   Noche granate, acento dorado y escalonado andino.
   --ip-c1 / --ip-c2 llegan desde el campeonato (panel).
   ========================================================= */
.layout-interprovincial {
  --ip-c1: #BE1630; --ip-c2: #E8A317;
  --ip-noche: #160A0E; --ip-noche-2: #20111A; --ip-granate: #5E0B1A;
  --ip-card: #24151B; --ip-borde: rgba(255, 255, 255, .09);
  --ip-texto: #F4ECEE; --ip-suave: #BCA9AF;
  --oro: #E8A317; --plata: #B9BCC4; --bronce: #B8733A;
  background: var(--ip-noche); color: var(--ip-texto);
}
.layout-interprovincial [hidden] { display: none !important; }
.layout-interprovincial a { color: var(--ip-c2); }
.ip-container { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ip-kicker { display: inline-block; font: 700 .74rem/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ip-c2); }
.ip-muted, .ip-note { color: var(--ip-suave); }
.ip-note { font-size: .82rem; margin-top: 14px; }

/* Escalonado andino reutilizable */
.ip-hero-weave, .ip-weave, .ip-section-gold::before {
  background-image:
    linear-gradient(135deg, var(--ip-c2) 25%, transparent 25%), linear-gradient(225deg, var(--ip-c2) 25%, transparent 25%),
    linear-gradient(315deg, var(--ip-c1) 25%, transparent 25%), linear-gradient(45deg, var(--ip-c1) 25%, transparent 25%);
  background-size: 34px 34px; background-position: 0 0, 0 0, 17px 17px, 17px 17px;
}

/* Cabecera */
.ip-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(22, 10, 14, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ip-borde); }
body.layout-interprovincial::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--ip-noche); }
.ip-header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.ip-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ip-texto) !important; flex-shrink: 0; }
.ip-brand img { width: 36px; height: auto; }
.ip-brand small { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ip-suave); }
.ip-brand b { font: 900 1.25rem/1 var(--display); font-stretch: 66%; text-transform: uppercase; letter-spacing: .03em; }
.ip-brand em { font-style: normal; color: var(--ip-c2); }
.ip-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.ip-nav::-webkit-scrollbar { display: none; }
.ip-nav a { color: var(--ip-texto) !important; text-decoration: none; padding: 8px 11px; font-weight: 600; font-size: .9rem; border-radius: 4px; white-space: nowrap; }
.ip-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--ip-c2) !important; }

/* Portada */
.ip-hero { position: relative; overflow: hidden; padding-block: 64px 40px;
  background: radial-gradient(120% 90% at 85% 10%, rgba(190, 22, 48, .55), transparent 60%), linear-gradient(160deg, var(--ip-granate) 0%, var(--ip-noche) 75%); }
.ip-hero.has-img { background: linear-gradient(100deg, rgba(22, 10, 14, .96) 25%, rgba(94, 11, 26, .78) 60%, rgba(94, 11, 26, .45)), var(--ip-img) center/cover; }
.ip-hero-weave { position: absolute; top: 0; bottom: 0; right: 0; width: 34px; opacity: .9; }
.ip-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 40px; align-items: end; }
.ip-hero-title { display: grid; margin: 14px 0 18px; text-transform: uppercase; line-height: 1; }
.ip-hero-word { font: 800 clamp(1.2rem, 3vw, 1.8rem)/1 var(--display); font-stretch: 75%; letter-spacing: .3em; color: var(--ip-suave); }
.ip-hero-main { font: 900 clamp(3.2rem, 11vw, 8.4rem)/1.02 var(--display); font-stretch: 62%; letter-spacing: -.01em; color: #fff; }
.ip-hero-year { font: 900 clamp(3.2rem, 11vw, 8.4rem)/1 var(--display); font-stretch: 62%; color: transparent; -webkit-text-stroke: 2px var(--ip-c2); }
.ip-hero-motto { font-size: 1.2rem; font-style: italic; color: #F6D9DE; max-width: 46ch; }
.ip-hero-meta { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.ip-hero-meta li { display: grid; gap: 2px; font-weight: 600; }
.ip-hero-meta span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ip-c2); }

.ip-status { position: relative; background: rgba(22, 10, 14, .7); border: 1px solid var(--ip-borde); border-top: 4px solid var(--ip-c2); border-radius: 8px; padding: 22px; overflow: hidden; }
.ip-status-shield { position: absolute; right: -24px; bottom: -30px; width: 130px; height: auto; opacity: .12; pointer-events: none; }
.ip-status-label { display: flex; align-items: center; gap: 8px; font: 800 .8rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ip-c2); margin-bottom: 10px; }
.ip-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ip-countdown div { display: grid; justify-items: center; background: rgba(255, 255, 255, .05); border-radius: 6px; padding: 10px 4px; }
.ip-countdown b { font: 900 2.4rem/1 var(--display); font-stretch: 66%; font-variant-numeric: tabular-nums; }
.ip-countdown span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ip-suave); }
.ip-day { display: flex; align-items: baseline; gap: 10px; }
.ip-day b { font: 900 4.4rem/.9 var(--display); font-stretch: 62%; color: #fff; }
.ip-day span { font-weight: 600; color: var(--ip-suave); text-transform: uppercase; letter-spacing: .08em; }
.ip-progress { height: 8px; background: rgba(255, 255, 255, .1); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.ip-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ip-c1), var(--ip-c2)); }
.ip-champion { display: grid; justify-items: start; gap: 8px; }
.ip-champion span { font-size: .8rem; color: var(--ip-suave); }
.ip-champion b { font: 900 1.8rem/1.08 var(--display); font-stretch: 70%; text-transform: uppercase; }
.ip-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF3B4E; box-shadow: 0 0 0 0 rgba(255, 59, 78, .7); animation: ip-ping 1.6s infinite; flex-shrink: 0; }
@keyframes ip-ping { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); } }

.ip-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 0; border-top: 1px solid var(--ip-borde); }
.ip-stats div { padding: 18px 16px 0; border-left: 1px solid var(--ip-borde); }
.ip-stats div:first-child { border-left: 0; padding-left: 0; }
.ip-stats dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ip-suave); }
.ip-stats dd { margin: 4px 0 0; font: 900 2.8rem/1 var(--display); font-stretch: 66%; color: #fff; font-variant-numeric: tabular-nums; }

/* Hoy / en vivo */
.ip-live { background: var(--ip-c1); padding-block: 26px 30px; }
.ip-live-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ip-live-head h2 { font-size: 1.5rem; color: #fff; }
.ip-live .ip-live-dot { background: #fff; }
.ip-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.ip-scroller .match { scroll-snap-align: start; }

/* Secciones */
.ip-section { padding-block: 72px; position: relative; scroll-margin-top: 70px; }
.ip-section-dark { background: var(--ip-noche-2); }
.ip-section-gold { background: var(--ip-granate); overflow: hidden; }
.ip-section-gold::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 17px; opacity: .85; background-size: 34px 34px; }
.ip-section-head { margin-bottom: 28px; display: grid; gap: 6px; }
.ip-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.ip-title { font: 900 clamp(2.6rem, 7vw, 4.6rem)/1.04 var(--display); font-stretch: 62%; text-transform: uppercase; color: #fff; }
.ip-subtitle { font: 900 2rem/1.08 var(--display); font-stretch: 66%; text-transform: uppercase; margin: 48px 0 20px; }
.ip-more { font-weight: 700; text-decoration: none; }
.ip-page { min-height: 50vh; }

/* Filtros y pestañas */
.ip-chips, .ip-tablist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.ip-chips button, .ip-tablist button { background: transparent; color: var(--ip-texto); border: 1px solid var(--ip-borde); border-radius: 30px; padding: 8px 16px; font: 600 .88rem var(--body); cursor: pointer; }
.ip-chips button:hover, .ip-tablist button:hover { border-color: var(--ip-c2); }
.ip-chips button.active, .ip-tablist button[aria-selected="true"] { background: var(--ip-c2); border-color: var(--ip-c2); color: #1E1215; }

/* Días y partidos */
.ip-days { display: grid; gap: 34px; }
.ip-day-title { font: 800 1rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ip-c2); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.ip-day-title::after { content: ""; flex: 1; height: 1px; background: var(--ip-borde); }
.ip-match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.layout-interprovincial .match { background: var(--ip-card); border-color: var(--ip-borde); color: var(--ip-texto); }
.layout-interprovincial .match.is-live { border-color: #FF3B4E; box-shadow: 0 0 0 2px rgba(255, 59, 78, .25); }
.ip-live .match { background: #fff; color: var(--piedra); }
.ip-live .match .score { color: var(--piedra); }
.layout-interprovincial .match-meta { background: rgba(255, 255, 255, .04); color: var(--ip-suave); }
.ip-live .match-meta { background: var(--niebla); color: var(--muted); }
.layout-interprovincial .score { color: #fff; }
.layout-interprovincial .score-time { background: rgba(255, 255, 255, .07); color: var(--ip-c2); }
.layout-interprovincial .team.win .team-name { color: var(--ip-c2); }
.ip-live .team.win .team-name { color: var(--rojo); }
.layout-interprovincial .match-foot { border-color: var(--ip-borde); color: var(--ip-suave); }
.layout-interprovincial .st-finalizado { color: var(--ip-texto); }
.layout-interprovincial .st-en_juego { color: #FF5A6B; }

/* Tablas */
.layout-interprovincial .table-wrap { background: var(--ip-card); border-color: var(--ip-borde); }
.layout-interprovincial .standings th { background: rgba(0, 0, 0, .3); color: var(--ip-c2); }
.layout-interprovincial .standings td { border-color: var(--ip-borde); }
.layout-interprovincial .standings .pos { color: var(--ip-suave); }
.layout-interprovincial .standings tbody tr:first-child .pos, .layout-interprovincial .standings .pts { color: var(--ip-c2); }
.layout-interprovincial .standings tbody tr:first-child td { background: rgba(232, 163, 23, .07); }

/* Medallas */
.m-oro, .m-plata, .m-bronce { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; font: 800 .8rem var(--display); font-style: normal; color: #1E1215; }
.m-oro { background: var(--oro); } .m-plata { background: var(--plata); } .m-bronce { background: var(--bronce); color: #fff; }
.ip-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; max-width: 760px; margin: 0 auto 36px; }
.ip-podium-step { display: grid; justify-items: center; gap: 8px; text-align: center; }
.ip-podium-step b { font: 900 1.4rem/1.1 var(--display); font-stretch: 70%; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.ip-podium-medals { display: flex; gap: 4px; }
.ip-podium-block { width: 100%; display: grid; place-items: center; font: 900 3rem/1 var(--display); font-stretch: 62%; border-radius: 6px 6px 0 0; color: #1E1215; }
.step-1 .ip-podium-block { height: 150px; background: linear-gradient(var(--oro), #B57C06); }
.step-2 .ip-podium-block { height: 110px; background: linear-gradient(var(--plata), #878A92); }
.step-3 .ip-podium-block { height: 80px; background: linear-gradient(var(--bronce), #8A5124); color: #fff; }
.step-1 .crest-lg { width: 84px; height: 84px; font-size: 1.5rem; }
.medal-table th i { width: 26px; }
.ip-section-gold .table-wrap { background: rgba(22, 10, 14, .55); }

/* Delegaciones */
.ip-delegations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.ip-delegation { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; background: var(--ip-card); border: 1px solid var(--ip-borde); border-radius: 8px; overflow: hidden; }
.ip-delegation::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--team); }
.ip-delegation h3 { font: 900 1.6rem/1.08 var(--display); font-stretch: 66%; text-transform: uppercase; color: #fff; }
.ip-delegation p { color: var(--ip-suave); font-size: .85rem; }
.ip-delegation-medals { display: flex; flex-direction: column; gap: 3px; }
.ip-delegation-medals i { min-width: 24px; height: 22px; font-size: .72rem; }

/* Sobre, noticias, galería, sedes */
.ip-about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.ip-prose { font-size: 1.1rem; line-height: 1.75; color: #E6DADD; }
.ip-prose > * + * { margin-top: 1em; }
.ip-prose a { color: var(--ip-c2); }
.ip-prose img, .ip-prose iframe { max-width: 100%; border-radius: 8px; }
.ip-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.ip-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.layout-interprovincial .news-card a { color: var(--ip-texto); }
.layout-interprovincial .news-body time { color: var(--ip-c2); }
.layout-interprovincial .news-body p { color: var(--ip-suave); }
.layout-interprovincial .news-card a:hover h3 { color: var(--ip-c2); }
.layout-interprovincial .news-img { background: linear-gradient(135deg, var(--ip-c1), var(--ip-granate)); }
.ip-gallery a { background: var(--ip-card); }
.ip-venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ip-venue { background: var(--ip-card); border: 1px solid var(--ip-borde); border-radius: 8px; overflow: hidden; }
.ip-venue img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ip-venue div { padding: 18px; display: grid; gap: 6px; }
.ip-venue h3 { font: 900 1.5rem/1.08 var(--display); font-stretch: 66%; text-transform: uppercase; color: #fff; }
.ip-venue p { color: var(--ip-suave); }
.ip-venue a { font-weight: 700; text-decoration: none; }

/* Artículo */
.ip-article { max-width: 820px; display: grid; gap: 14px; }
.ip-back { font-weight: 700; text-decoration: none; font-size: .9rem; }
.ip-lead { font-size: 1.2rem; color: var(--ip-suave); }
.ip-article-img { width: 100%; border-radius: 8px; margin: 12px 0; }

/* Auspiciadores y pie */
.ip-sponsors { background: #fff; color: var(--piedra); padding-block: 36px; text-align: center; }
.ip-sponsors .ip-kicker { color: var(--muted); margin-bottom: 16px; }
.ip-footer { background: #0F0709; position: relative; }
.ip-weave { height: 17px; background-size: 34px 34px; }
.ip-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 36px 24px; }
.ip-footer-brand { display: flex; gap: 14px; align-items: center; }
.ip-footer-brand img { width: 54px; height: auto; }
.ip-footer-brand small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ip-suave); }
.ip-footer-brand b { display: block; font: 900 1.4rem/1.1 var(--display); font-stretch: 70%; text-transform: uppercase; }
.ip-footer-brand a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.ip-footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .9rem; }
.ip-footer-links a, .ip-footer-links span { color: var(--ip-suave); }
.ip-footer-bottom { padding-block: 16px max(16px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ip-borde); font-size: .8rem; color: #7E6A70; }
.layout-interprovincial .pagination a, .layout-interprovincial .pagination span { border-color: var(--ip-borde); color: var(--ip-texto); }
.layout-interprovincial .pagination .current { background: var(--ip-c2); border-color: var(--ip-c2); color: #1E1215; }

/* Responsive */
@media (max-width: 1080px) {
}
@media (max-width: 900px) {
  .ip-header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .ip-nav { order: 3; width: 100%; margin: 6px -8px 0; padding-bottom: 6px; }
  .ip-section { scroll-margin-top: 108px; }
  .ip-hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ip-about-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .ip-hero { padding-block: 40px 28px; }
  .ip-hero-weave { width: 17px; background-size: 17px 17px; }
  .ip-hero-year { -webkit-text-stroke-width: 1.5px; }
  .ip-stats { grid-template-columns: repeat(2, 1fr); }
  .ip-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ip-section { padding-block: 52px; }
  .ip-podium { gap: 6px; }
  .ip-podium-step b { font-size: 1.05rem; }
  .ip-scroller { grid-auto-columns: 86%; }
}

/* Premios, camino a la final y provincias con varios equipos */
.ip-hero-meta .ip-prize { color: var(--ip-c2); font: 900 1.5rem/1.1 var(--display); font-stretch: 70%; text-transform: uppercase; }
.ip-hero-meta .ip-prize span { font-family: var(--body); font-weight: 600; }
.ip-road { background: var(--ip-c2); color: #1E1215; padding-block: 28px; }
.ip-road .ip-kicker { color: #5E0B1A; }
.ip-road-head h2 { font: 900 clamp(1.8rem, 4vw, 2.6rem)/1.08 var(--display); font-stretch: 66%; text-transform: uppercase; margin: 4px 0 16px; }
.ip-road-list { display: grid; gap: 10px; }
.ip-road-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #1E1215; color: #fff !important; text-decoration: none; padding: 16px 20px; border-radius: 8px; }
.ip-road-item b { display: block; font: 900 1.4rem/1.12 var(--display); font-stretch: 70%; text-transform: uppercase; }
.ip-road-item span { color: var(--ip-suave); font-size: .9rem; }
.ip-road-item .ip-road-cta { color: var(--ip-c2); font-weight: 700; font-size: .95rem; }
.ip-road-item:hover { outline: 2px solid #1E1215; outline-offset: 2px; }
.ip-provinces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.ip-province { background: var(--ip-card); border: 1px solid var(--ip-borde); border-top: 4px solid var(--ip-c1); border-radius: 8px; padding: 18px; display: grid; gap: 14px; align-content: start; }
.ip-province h3 { font: 900 1.9rem/1.08 var(--display); font-stretch: 64%; text-transform: uppercase; color: #fff; }
.ip-province-cat > span { font: 700 .7rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ip-c2); }
.ip-province-cat ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.ip-province-cat li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
.ip-province-cat li b { font-weight: 700; }
.ip-province-cat li small { grid-column: 2; color: var(--ip-suave); font-size: .78rem; }
.ip-tbd { color: var(--ip-suave); font-style: italic; border: 1px dashed var(--ip-borde); border-radius: 6px; padding: 12px; text-align: center; }

/* Compartir en el layout exclusivo */
.layout-interprovincial .share-label { color: var(--ip-suave); }
.layout-interprovincial .share-btn { background: transparent; color: var(--ip-texto); border-color: var(--ip-borde); }
.layout-interprovincial .share-wa { border-color: #25D366; color: #5BE38F; }
.layout-interprovincial .share-copy.is-done { background: var(--ip-c2); color: #1E1215; }

/* Botón para volver a la web principal de AD Wiñay */
.ip-home { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 10px; border-radius: 30px;
  background: var(--ip-c1); color: #fff !important; text-decoration: none; border: 2px solid rgba(255, 255, 255, .25);
  box-shadow: 0 6px 18px rgba(190, 22, 48, .35); transition: transform .15s, background .15s, border-color .15s; }
.ip-home:hover { background: #D11B37; border-color: var(--ip-c2); transform: translateY(-1px); }
.ip-home:focus-visible { outline: 3px solid var(--ip-c2); outline-offset: 2px; }
.ip-home img { width: 26px; height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.ip-home-arrow { width: 16px; height: 16px; transition: transform .15s; }
.ip-home:hover .ip-home-arrow { transform: translateX(-3px); }
.ip-home span { display: grid; line-height: 1.05; font: 900 1rem/1.05 var(--display); font-stretch: 70%; text-transform: uppercase; letter-spacing: .02em; }
.ip-home small { font: 600 .62rem/1.2 var(--body); letter-spacing: .14em; color: #FFD3D8; }
.ip-footer-brand .ip-footer-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 18px; border-radius: 30px;
  background: var(--ip-c1); color: #fff !important; font: 700 .9rem var(--body); text-decoration: none; border: 2px solid rgba(255, 255, 255, .2); }
.ip-footer-brand .ip-footer-home:hover { border-color: var(--ip-c2); }
@media (max-width: 900px) {
  .ip-brand { margin-right: auto; }
  .ip-home { order: 2; padding: 5px 12px 5px 8px; }
  .ip-home img { width: 22px; }
}
@media (max-width: 380px) {
  .ip-home small { display: none; }
  .ip-brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ip-home, .ip-home-arrow { transition: none; } }
@media (max-width: 480px) {
  .ip-brand { gap: 8px; }
  .ip-brand img { width: 30px; }
  .ip-brand b { font-size: 1.05rem; }
  .ip-brand small { display: none; }
  .ip-home { gap: 6px; padding: 5px 12px 5px 6px; }
  .ip-home small { display: none; }
  .ip-home-arrow { width: 14px; height: 14px; }
}

/* Formato en dos etapas */
.ip-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: none; }
.ip-stage { position: relative; background: var(--ip-card); border: 1px solid var(--ip-borde); border-radius: 12px; padding: 24px 24px 22px; overflow: hidden; }
.ip-stage h3 { margin: 6px 0 8px; font: 900 clamp(1.6rem, 3.4vw, 2.2rem)/1.08 var(--display); font-stretch: 68%; text-transform: uppercase; }
.ip-stage p { margin: 0; color: var(--ip-suave); }
.ip-stage-num { position: absolute; top: -6px; right: 14px; font: 900 6rem/1 var(--display); font-stretch: 70%; color: rgba(255, 255, 255, .06); pointer-events: none; }
.ip-stage-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ip-stage-tags li { padding: 4px 12px; border-radius: 20px; border: 1px solid var(--ip-borde); background: rgba(255, 255, 255, .04); font-size: .85rem; font-weight: 600; color: var(--ip-texto); }
.ip-stage-final { background: linear-gradient(140deg, var(--ip-granate), var(--ip-card) 70%); border-color: rgba(232, 163, 23, .45); }
.ip-stage-final .ip-stage-num { color: rgba(232, 163, 23, .14); }
.ip-stage-prize { display: inline-block; margin-top: 16px !important; padding: 8px 16px; border-radius: 30px; background: var(--ip-c2); color: #1E1215 !important; font: 900 1.25rem/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 720px) { .ip-stages { grid-template-columns: 1fr; } }

/* Premio destacado en la portada */
.ip-prize-card { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; margin: 6px 0 4px; padding: 12px 22px 12px 20px; border-radius: 10px; color: #1E1215;
  background: linear-gradient(135deg, #F7C64B 0%, var(--ip-c2) 45%, #C9870C 100%);
  box-shadow: 0 18px 40px rgba(232, 163, 23, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ip-prize-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-100%); animation: ip-brillo 4.5s ease-in-out 1s infinite; pointer-events: none; }
.ip-prize-amount { font: 900 clamp(2.8rem, 7vw, 4.4rem)/.95 var(--display); font-stretch: 62%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-prize-text { display: grid; font: 900 clamp(1.1rem, 2.4vw, 1.5rem)/1 var(--display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .03em; color: #5E0B1A; }
.ip-prize-text small { font: 800 .7rem var(--body); letter-spacing: .22em; margin-bottom: 4px; }
@keyframes ip-brillo { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ip-prize-card::after { animation: none; } }
.ip-fases-fig { margin: 22px 0 0; }
.ip-fases-fig a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.ip-fases-fig img { display: block; width: 100%; height: auto; }
/* Etapa 1: cada provincia con la fecha de su relámpago */
.ip-stage-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.ip-stage-dates li { padding: 0; border-radius: 10px; }
.ip-stage-dates li > a, .ip-stage-dates li:not(:has(a)) { display: grid; gap: 2px; padding: 10px 12px; color: inherit; text-decoration: none; }
.ip-stage-dates b { font: 900 1.15rem/1.1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.ip-stage-dates span { font-size: .82rem; color: var(--ip-suave); }
.ip-stage-dates li.has-date { border-color: var(--ip-c2); background: rgba(232, 163, 23, .12); }
.ip-stage-dates li.has-date span { color: var(--ip-c2); font-weight: 700; }
.ip-stage-dates li > a:hover b { color: var(--ip-c2); }
