/*
Theme Name: En Ruta por México
Theme URI: https://enrutapormexico.com
Author: Geovanny González
Description: Tema a la medida para el motovlog En Ruta por México y la comunidad HGO ADV Riders. Videos, rutas con tracks GPX, sitios visitados, salidas del grupo y tienda.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enruta
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bg: #0B0B0B;
    --bg-2: #101010;
    --card: #161616;
    --card-2: #141414;
    --line: #242424;
    --line-2: #2A2A2A;
    --text: #F4F4EE;
    --muted: #B9B9B0;
    --lime: #D4FF1F;
    --lime-hover: #E4FF6A;
    --tan: #B8996A;
    --wa: #14803F;
    --wa-hover: #0F6A33;
    --hgo-bg: #12100C;
    --hgo-card: #1A1712;
    --hgo-line: #2E281D;
    --hgo-muted: #BDB5A6;
    --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --gutter: clamp(20px, 4vw, 32px);
    --pad-y: clamp(52px, 9vw, 96px);
    --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23D4FF1F' stroke-opacity='0.16' stroke-width='1.2'%3E%3Cpath d='M-10 70 C 60 30, 120 100, 200 60 S 340 20, 420 60'/%3E%3Cpath d='M-10 100 C 70 60, 130 130, 200 90 S 340 50, 420 90'/%3E%3Cpath d='M-10 130 C 80 90, 140 160, 200 120 S 340 80, 420 120'/%3E%3Cpath d='M-10 160 C 90 120, 150 190, 200 150 S 340 110, 420 150'/%3E%3Cpath d='M-10 190 C 100 150, 160 220, 200 180 S 340 140, 420 180'/%3E%3Cellipse cx='300' cy='140' rx='72' ry='36' transform='rotate(-12 300 140)'/%3E%3Cellipse cx='300' cy='140' rx='46' ry='22' transform='rotate(-12 300 140)'/%3E%3Cellipse cx='300' cy='140' rx='22' ry='10' transform='rotate(-12 300 140)'/%3E%3C/g%3E%3C/svg%3E");
    --topo-tan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 250' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23B8996A' stroke-opacity='0.28' stroke-width='1.2'%3E%3Cpath d='M-10 80 C 60 40, 130 110, 210 70 S 340 30, 420 70'/%3E%3Cpath d='M-10 115 C 70 75, 140 145, 210 105 S 340 65, 420 105'/%3E%3Cpath d='M-10 150 C 80 110, 150 180, 210 140 S 340 100, 420 140'/%3E%3Cpath d='M-10 185 C 90 145, 160 215, 210 175 S 340 135, 420 175'/%3E%3Cpath d='M-10 220 C 100 180, 170 250, 210 210 S 340 170, 420 210'/%3E%3Cellipse cx='300' cy='150' rx='66' ry='32' transform='rotate(-12 300 150)'/%3E%3Cellipse cx='300' cy='150' rx='40' ry='18' transform='rotate(-12 300 150)'/%3E%3C/g%3E%3C/svg%3E");
    --topo-hero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 820' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23D4FF1F' stroke-opacity='0.08' stroke-width='1.4'%3E%3Cpath d='M-20 560 C 180 480, 340 640, 560 560 S 920 440, 1120 520 S 1360 600, 1480 520'/%3E%3Cpath d='M-20 610 C 190 530, 350 690, 570 610 S 930 490, 1130 570 S 1370 650, 1480 570'/%3E%3Cpath d='M-20 660 C 200 580, 360 740, 580 660 S 940 540, 1140 620 S 1380 700, 1480 620'/%3E%3Cpath d='M-20 710 C 210 630, 370 790, 590 710 S 950 590, 1150 670 S 1390 750, 1480 670'/%3E%3Cpath d='M-20 760 C 220 680, 380 840, 600 760 S 960 640, 1160 720 S 1400 800, 1480 720'/%3E%3Cellipse cx='1180' cy='250' rx='260' ry='130' transform='rotate(-14 1180 250)'/%3E%3Cellipse cx='1180' cy='250' rx='190' ry='94' transform='rotate(-14 1180 250)'/%3E%3Cellipse cx='1180' cy='250' rx='120' ry='58' transform='rotate(-14 1180 250)'/%3E%3Cellipse cx='1180' cy='250' rx='52' ry='24' transform='rotate(-14 1180 250)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.5 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video { max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime); }

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

[hidden] { display: none !important; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed !important;
    left: 12px; top: 12px;
    width: auto; height: auto;
    margin: 0; padding: 12px 18px;
    clip: auto; clip-path: none;
    z-index: 100;
    background: var(--lime);
    color: #0B0B0B;
    font-weight: 600;
    border-radius: 4px;
}

/* Campo trampa contra bots del formulario */
.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.wrap {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Fondo de curvas de nivel */
.topo {
    background-color: var(--card-2);
    background-image: var(--topo);
    background-size: cover;
    background-position: center;
}
.topo--tan {
    background-color: var(--bg-2);
    background-image: var(--topo-tan);
}

/* ==========================================================================
   Botones, chips, etiquetas
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    font: 600 15px/1.1 var(--font-body);
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { min-height: 54px; font-size: 16px; padding: 0 24px; }
.btn--block { display: flex; width: 100%; }
.btn--lime { background: var(--lime); border-color: var(--lime); color: #0B0B0B; }
.btn--lime:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: #0B0B0B; }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { border-color: var(--lime); color: var(--lime); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: #fff; }
.btn--tan-ghost { border-color: var(--tan); color: var(--tan); }
.btn--tan-ghost:hover { background: var(--tan); color: #0B0B0B; }
.btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }

.link-under {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.link-lime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--lime);
    font: 600 15px/1 var(--font-body);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.link-lime:hover { color: var(--lime-hover); }

.chips {
    display: flex;
    gap: 8px;
    padding: 10px 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips--filter { padding: 4px 3px; margin: -4px -3px 20px; }

.chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    background: transparent;
    color: var(--text);
    font: 600 15px/1 var(--font-body);
    white-space: nowrap;
    cursor: pointer;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.chip[aria-pressed="true"],
.chip[aria-current="true"] {
    background: var(--lime);
    border-color: var(--lime);
    color: #0B0B0B;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 3px;
    color: #0B0B0B;
    font: 600 12px/1.2 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.badge--asfalto { background: var(--text); }
.badge--terraceria { background: var(--tan); }
.badge--offroad { background: var(--lime); }
.badge--pay { padding: 3px 10px; background: transparent; border: 1px solid currentColor; }
.badge--pay.is-paid { color: var(--text); }
.badge--pay.is-free { color: var(--lime); }

.eyebrow {
    margin: 0 0 10px;
    color: var(--lime);
    font: 600 13px/1.2 var(--font-body);
    letter-spacing: .2em;
    text-transform: uppercase;
}
.eyebrow--tan { color: var(--tan); }

.empty {
    margin: 0;
    padding: 28px 20px;
    background: var(--card);
    border: 1px dashed var(--line-2);
    border-radius: 6px;
    color: var(--muted);
}
.empty--tan { background: var(--hgo-card); border-color: var(--hgo-line); color: var(--hgo-muted); }

/* ==========================================================================
   Cabecera y barra de secciones
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { display: block; flex: 0 0 auto; width: auto; height: 46px; }
.brand__name {
    font: 800 19px/1 var(--font-head);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.brand__name span { display: block; color: var(--lime); }
.brand:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
}
.icon-btn:hover { background: var(--wa-hover); color: #fff; }

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #3A3A3A;
    border-radius: 22px;
    font-weight: 600;
    font-size: 15px;
}
.cart-link__n {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px; height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    background: var(--lime);
    color: #0B0B0B;
    font-size: 13px;
}

.chipnav { border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Portada: hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--topo-hero) center bottom / cover no-repeat;
}
.hero__in {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px 56px;
    padding-top: 36px;
    padding-bottom: clamp(48px, 8vw, 88px);
}
.hero__text, .hero__media { flex: 1 1 340px; min-width: 0; }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 {
    margin: 0;
    font: 800 clamp(52px, 12vw, 104px)/.92 var(--font-head);
    text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__lead { margin: 22px 0 0; max-width: 540px; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__where { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.hero__where a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 16px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.stat { flex: 1 1 130px; }
.stat b { display: block; font: 700 44px/1 var(--font-head); color: var(--lime); }
.stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.player {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 6px;
}
.player:hover { color: var(--text); }
.player > img:not(.player__logo) {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.player__logo {
    position: absolute;
    left: 50%; top: 42%;
    width: 28%; height: auto;
    transform: translate(-50%, -50%);
    opacity: .9;
}
.player__play {
    position: absolute;
    left: 50%; top: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--lime);
    color: #0B0B0B;
    transition: transform .15s;
}
.player:hover .player__play { transform: translate(-50%, -50%) scale(1.08); }
.player__bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 12px 16px;
    background: var(--bg);
    border-top: 1px solid var(--line-2);
}
.player__bar small {
    display: block;
    color: var(--lime);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.player__bar strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 700 22px/1.15 var(--font-head);
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding-block: var(--pad-y); border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
}
.section__intro { max-width: 720px; }
.section__intro p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); }

.title-xl {
    margin: 0;
    font: 700 clamp(38px, 8vw, 72px)/1 var(--font-head);
    text-transform: uppercase;
}
.title-md {
    margin: 0 0 20px;
    font: 700 clamp(30px, 6vw, 40px)/1 var(--font-head);
    text-transform: uppercase;
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-bottom: 1px solid var(--lime);
    color: var(--text);
    font: 600 15px/1 var(--font-body);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.more--tan { color: var(--tan); border-bottom-color: var(--tan); }
.more--tan:hover { color: var(--tan); }

/* Carruseles horizontales */
.carousel {
    display: flex;
    gap: 16px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #3A3A3A transparent;
    -webkit-overflow-scrolling: touch;
}
.carousel > * { flex: 0 0 min(82%, 360px); min-width: 0; scroll-snap-align: start; }

/* ==========================================================================
   Tarjetas: video
   ========================================================================== */
.vcard__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.vcard__thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.vcard__tag {
    position: absolute;
    left: 10px; top: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--lime);
    color: #0B0B0B;
    font: 600 12px/1.4 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.vcard__play {
    position: absolute;
    left: 50%; top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--lime);
    color: #0B0B0B;
    transition: transform .15s;
}
.vcard__thumb:hover .vcard__play { transform: translate(-50%, -50%) scale(1.08); }
.vcard__dur {
    position: absolute;
    right: 10px; bottom: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(11, 11, 11, .88);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.vcard__meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.vcard__title { margin: 2px 0 0; font: 700 24px/1.1 var(--font-head); }

/* ==========================================================================
   Tarjetas: ruta
   ========================================================================== */
.steps {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: 6px;
}
.steps--shop { margin: 44px 0 0; }
.steps h3 {
    margin: 0;
    font: 700 24px/1.1 var(--font-head);
    letter-spacing: .03em;
    text-transform: uppercase;
}
.steps ol {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.steps li { flex: 1 1 220px; display: flex; gap: 12px; }
.steps__n {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--lime);
    color: #0B0B0B;
    font: 800 20px/1 var(--font-head);
}
.steps b { display: block; font-weight: 600; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

.routes { display: grid; gap: 16px; }
@media (min-width: 900px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rcard {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: 6px;
}
.rcard__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.rcard__title { margin: 0; font: 700 32px/1 var(--font-head); text-transform: uppercase; }
.rcard__route { margin-top: 6px; color: var(--muted); }
.rcard__profile { display: block; width: 100%; height: 48px; margin-top: 14px; }
.rcard__profile--lg { height: 90px; margin: 0 0 24px; padding: 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; }

.rstats { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 14px 0 0; }
.rstat { flex: 1 1 120px; }
.rstat dt {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.rstat dd { margin: 0; font: 700 26px/1.2 var(--font-head); }

.rcard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rcard__actions .btn { flex: 1 1 200px; }
.rcard__actions .link-under { flex: 1 1 100%; }

/* ==========================================================================
   Tarjetas: sitio
   ========================================================================== */
.scard {
    overflow: hidden;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.scard__thumb { position: relative; display: block; aspect-ratio: 16 / 10; }
.scard__thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.scard__cat {
    position: absolute;
    left: 12px; top: 12px;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--tan);
    color: #0B0B0B;
    font: 600 12px/1.4 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.scard__body { padding: 16px 18px 20px; }
.scard__title { margin: 0; font: 700 28px/1.1 var(--font-head); }
.scard__loc { margin-top: 2px; color: var(--muted); }
.scard__facts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-2);
    color: var(--muted);
    font-size: 15px;
}
.scard__facts:empty { display: none; }
.scard__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 8px; }
.scard__links .link-under { min-height: 44px; }

/* ==========================================================================
   HGO ADV Riders
   ========================================================================== */
.section--hgo { background: var(--hgo-bg); border-bottom-color: var(--hgo-line); }

.hgo { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.hgo__logo { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.hgo__logo img { display: block; width: 100%; max-width: 420px; height: auto; }
.hgo__body { flex: 1 1 340px; min-width: 0; }
.hgo__title {
    margin: 0;
    font: 800 clamp(48px, 11vw, 92px)/.95 var(--font-head);
    text-transform: uppercase;
}
.hgo__title em { font-style: normal; color: var(--tan); }
.hgo__lead { margin: 20px 0 0; max-width: 560px; font-size: 18px; color: var(--hgo-muted); }

.tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tile {
    flex: 1 1 220px;
    padding: 16px 18px;
    background: var(--hgo-card);
    border: 1px solid var(--hgo-line);
    border-radius: 6px;
}
.tile b {
    display: block;
    color: var(--tan);
    font: 700 24px/1.1 var(--font-head);
    text-transform: uppercase;
}
.tile span { display: block; margin-top: 4px; color: var(--hgo-muted); }

.hgo__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hgo__cta .btn { flex: 1 1 220px; }

.rides { margin-top: clamp(48px, 8vw, 72px); }
.rides__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 20px;
}
.rides__head h3 {
    margin: 0;
    font: 700 clamp(34px, 7vw, 44px)/1 var(--font-head);
    text-transform: uppercase;
}
.rides__list { display: flex; flex-direction: column; gap: 12px; }

.ride {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    padding: 16px 18px;
    background: var(--hgo-card);
    border: 1px solid var(--hgo-line);
    border-radius: 6px;
}
.ride__date {
    flex: 0 0 auto;
    width: 68px;
    padding: 6px 0;
    text-align: center;
    background: var(--hgo-bg);
    border: 1px solid #3A3224;
    border-radius: 4px;
}
.ride__date b { display: block; color: var(--tan); font: 800 34px/1 var(--font-head); }
.ride__date span { display: block; color: var(--hgo-muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.ride__info { flex: 1 1 200px; min-width: 0; }
.ride__title { margin: 0; font: 700 26px/1.1 var(--font-head); }
.ride__meta { margin-top: 2px; color: var(--hgo-muted); font-size: 15px; }
.ride__cupo { margin-top: 2px; color: var(--hgo-muted); font-size: 14px; }
.ride__btn { flex: 1 1 100%; min-height: 48px; }
@media (min-width: 700px) { .ride__btn { flex: 0 0 auto; } }

/* ==========================================================================
   Tienda
   ========================================================================== */
.shop-wa { flex: 1 1 240px; max-width: 340px; min-height: 52px; }

.pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px 16px;
}
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

.pcard__img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__badge {
    position: absolute;
    left: 10px; top: 10px;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--lime);
    color: #0B0B0B;
    font: 600 12px/1.4 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pcard__cat {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pcard__title { margin: 2px 0 0; font: 700 23px/1.1 var(--font-head); }
.pcard__price { margin-top: 8px; color: var(--lime); font: 700 26px/1.2 var(--font-head); }
.pcard__price del { color: var(--muted); font-size: .7em; }
.pcard__price ins { text-decoration: none; }
.pcard__actions { display: flex; gap: 8px; margin-top: 8px; }
.pcard__actions .btn { flex: 1 1 auto; min-height: 46px; padding: 0 12px; }
.pcard__wa {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 4px;
    background: var(--wa);
    color: #fff;
}
.pcard__wa:hover { background: var(--wa-hover); color: #fff; }
.added_to_cart { display: none; }

.stickers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    margin-top: 44px;
    padding: 20px;
    background: var(--card);
    border: 1px dashed var(--lime);
    border-radius: 6px;
}
.stickers__art { display: flex; gap: 12px; flex: 0 0 auto; }
.stickers__art img {
    width: 84px; height: 84px;
    padding: 8px;
    object-fit: contain;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 14px;
}
.stickers__body { flex: 1 1 260px; }
.stickers__tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--lime);
    color: #0B0B0B;
    font: 600 12px/1.4 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.stickers h3 { margin: 8px 0 0; font: 700 32px/1 var(--font-head); text-transform: uppercase; }
.stickers p { margin: 6px 0 0; color: var(--muted); }

/* ==========================================================================
   Suscripción y pie de página
   ========================================================================== */
.subscribe { background: var(--lime); color: #0B0B0B; }
.subscribe a:hover { color: #0B0B0B; }
.subscribe :focus-visible { outline-color: #0B0B0B; }
.subscribe__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
    padding-block: clamp(48px, 8vw, 80px);
}
.subscribe__text, .subscribe__box { flex: 1 1 320px; min-width: 0; }
.subscribe h2 {
    margin: 0;
    font: 800 clamp(40px, 9vw, 76px)/.95 var(--font-head);
    text-transform: uppercase;
}
.subscribe__text p { margin: 14px 0 0; max-width: 520px; font-size: 18px; }
.subscribe__form { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.subscribe input[type="email"] {
    flex: 1 1 240px;
    min-width: 0;
    min-height: 54px;
    padding: 0 18px;
    background: var(--text);
    color: #0B0B0B;
    border: 2px solid #0B0B0B;
    border-radius: 4px;
    font-size: 18px;
}
.subscribe button {
    flex: 1 1 160px;
    min-height: 54px;
    padding: 0 28px;
    background: #0B0B0B;
    color: var(--lime);
    border: 2px solid #0B0B0B;
    border-radius: 4px;
    font: 600 16px/1 var(--font-body);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.subscribe button:hover { background: #1c1c1c; }
.subscribe__msg { margin: 12px 0 0; font-weight: 600; }
.subscribe__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.subscribe__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 2px solid #0B0B0B;
}

.site-footer { background: #070707; }
.site-footer__in { padding-top: clamp(44px, 7vw, 64px); padding-bottom: 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px 40px; }
.footer-col { flex: 1 1 140px; min-width: 0; }
.footer-col--brand { flex-basis: 280px; }
.footer-col--wide { flex-basis: 220px; }
.footer-col--brand img { display: block; width: auto; height: 88px; }
.footer-col--brand p { max-width: 340px; margin: 16px 0 0; color: var(--muted); }
.footer-col h3 {
    margin: 0;
    color: var(--lime);
    font: 700 20px/1.2 var(--font-head);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.footer-col--tan h3 { color: var(--tan); }
.footer-col ul { display: flex; flex-direction: column; margin: 6px 0 0; padding: 0; list-style: none; }
.footer-col li a { display: flex; align-items: center; min-height: 44px; }
.footer-col .break { word-break: break-word; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #9A9A92;
    font-size: 14px;
}

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.page-pad { padding-block: clamp(28px, 6vw, 64px); }
.page-pad--hgo { position: relative; }
.page-head { margin-bottom: 28px; }
.page-head .badges { margin-bottom: 14px; }
.page-title {
    margin: 0;
    font: 800 clamp(40px, 8vw, 80px)/.98 var(--font-head);
    text-transform: uppercase;
}
.page-meta { margin: 14px 0 0; max-width: 720px; font-size: 18px; color: var(--muted); }
.back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-img { margin-bottom: 24px; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); }
.hero-img img { display: block; width: 100%; }

.detail { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.detail__main { flex: 2 1 420px; min-width: 0; }
.detail__side { flex: 1 1 280px; min-width: 0; }
.detail__actions { margin-top: 16px; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.ficha {
    margin: 0;
    padding: 6px 18px;
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: 6px;
}
.ficha__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.ficha__row:last-child { border-bottom: 0; }
.ficha dt { color: var(--muted); }
.ficha dd { margin: 0; font-weight: 600; text-align: right; }

.entry { max-width: 760px; font-size: 18px; }
.entry--wide { max-width: 900px; }
.entry--spaced { margin-top: 28px; }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3, .entry h4 { margin-bottom: 0; font-family: var(--font-head); line-height: 1.1; }
.entry h2 { margin-top: 1.6em; font-size: 36px; text-transform: uppercase; }
.entry h3 { margin-top: 1.4em; font-size: 28px; }
.entry a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 6px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry blockquote {
    margin-left: 0;
    padding-left: 16px;
    border-left: 3px solid var(--lime);
    color: var(--muted);
}
.entry figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-inline: auto; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 28px 20px;
}
.cards--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.related { margin-top: clamp(40px, 7vw, 72px); }

.postcard { padding: 20px; background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; }
.postcard__date { margin: 0; color: var(--muted); font-size: 14px; }
.postcard__title { margin: 4px 0 8px; font: 700 30px/1.1 var(--font-head); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    font-weight: 600;
}
.page-numbers.current { background: var(--lime); border-color: var(--lime); color: #0B0B0B; }
a.page-numbers:hover { border-color: var(--lime); }

.notfound__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ==========================================================================
   WooCommerce (base oscura; se afina en la fase de tienda)
   ========================================================================== */
.woo { color: var(--text); }
.woo h1, .woo h2 { font-family: var(--font-head); text-transform: uppercase; }
.woo a { color: var(--lime); }
.woo .woocommerce-breadcrumb { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.woo ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px 16px;
    margin: 0; padding: 0;
    list-style: none;
}
.woo ul.products li.product { margin: 0; }
.woo ul.products li.product img { display: block; width: 100%; border-radius: 6px; }
.woo .price { color: var(--lime); font: 700 24px/1.2 var(--font-head); }
.woo .price del { color: var(--muted); }
.woo .price ins { text-decoration: none; }
.woo .woocommerce-loop-product__title { font: 700 22px/1.1 var(--font-head); }
.woo a.button, .woo button.button, .woo input.button, .woo #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    background: var(--lime);
    color: #0B0B0B;
    border: 0;
    border-radius: 4px;
    font: 600 15px/1 var(--font-body);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.woo a.button:hover, .woo button.button:hover, .woo input.button:hover { background: var(--lime-hover); color: #0B0B0B; }
.woo input[type="text"], .woo input[type="email"], .woo input[type="tel"],
.woo input[type="number"], .woo input[type="password"], .woo textarea, .woo select {
    min-height: 48px;
    padding: 8px 14px;
    background: var(--text);
    color: #0B0B0B;
    border: 2px solid #0B0B0B;
    border-radius: 4px;
    font-size: 17px;
}
.woo .quantity input.qty { width: 80px; }
.woo label { font-weight: 600; }
.woo table.shop_table { width: 100%; border-collapse: collapse; }
.woo table.shop_table th, .woo table.shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); text-align: left; }
.woo .woocommerce-message, .woo .woocommerce-info, .woo .woocommerce-error {
    margin: 0 0 20px;
    padding: 14px 18px;
    list-style: none;
    background: var(--card);
    border: 1px solid var(--line-2);
    border-left: 4px solid var(--lime);
    border-radius: 4px;
}
.woo .woocommerce-error { border-left-color: #FF6B5B; }
.woo .form-row { margin: 0 0 16px; }
.woo .form-row-first, .woo .form-row-last { width: 100%; }
.woo .col2-set { display: flex; flex-wrap: wrap; gap: 24px; }
.woo .col2-set .col-1, .woo .col2-set .col-2 { flex: 1 1 320px; }
.woo .cart_totals, .woo #order_review { padding: 20px; background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; }
.woo .wc-block-components-product-image img { border-radius: 6px; }
