/*
Theme Name: GPLR 2026 (Blocksy Child)
Theme URI: https://grandprixlagoranco.cl
Description: Tema hijo a medida para el Scotiabank Grand Prix Lago Ranco by Mitsubishi Motors. Identidad 2026, multi-idioma (WPML) y tienda (WooCommerce + Mercado Pago).
Author: Andeschimp
Template: blocksy
Version: 1.0.0
Text Domain: gplr
*/

:root {
  /* Paleta de marca GPLR 2026 */
  --gplr-red:       #EC111A; /* Rojo Scotiabank */
  --gplr-blue:      #00A3E0; /* Celeste Grand Prix */
  --gplr-blue-dark: #007BB8;
  --gplr-ink:       #1A1A1A; /* Texto / negro Mitsubishi */
  --gplr-gray:      #5B6770;
  --gplr-light:     #F4F6F8;
  --gplr-white:     #FFFFFF;
  --gplr-font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* Ocultar la franja de título de Blocksy en las páginas (cada una usa su propio título centrado en el contenido) */
.page .hero-section[data-type="type-1"] { display: none; }
/* La portada va a ancho completo, sin padding del contenedor */
.home .entry-content { max-width: 100% !important; }

/* ---------- Tipografía y base ---------- */
body { color: var(--gplr-ink); }
h1, h2, h3, h4, .gplr-display {
  font-family: var(--gplr-font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Botones de marca ---------- */
.gplr-btn,
.wp-block-button__link,
.button.alt,
.woocommerce a.button,
.woocommerce button.button.alt {
  background: var(--gplr-red) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.85em 1.8em !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform .15s ease, background .2s ease;
}
.gplr-btn:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover {
  background: #c10d15 !important;
  transform: translateY(-2px);
}
.gplr-btn--blue { background: var(--gplr-blue) !important; }
.gplr-btn--blue:hover { background: var(--gplr-blue-dark) !important; }

/* ---------- HERO de portada ---------- */
.gplr-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,123,184,.45)),
              center/cover no-repeat;
  padding: 4rem 1.5rem;
}
.gplr-hero__inner { max-width: 880px; margin: 0 auto; }
.gplr-hero__kicker {
  display: inline-block;
  background: var(--gplr-red);
  color: #fff;
  padding: .4em 1em;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  margin-bottom: 1.2rem;
}
.gplr-hero .gplr-hero__title,
.gplr-carousel__overlay .gplr-hero__title {
  font-family: var(--gplr-font-head);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 .6rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5);
}
.gplr-hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 500;
  opacity: .95;
  margin-bottom: 2rem;
}
.gplr-hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Franja de datos clave ---------- */
.gplr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e3e8ec;
  border-radius: 18px;
  overflow: hidden;
  margin: -3.5rem auto 3rem;
  max-width: 960px;
  position: relative;
  z-index: 5;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.gplr-stat { background: #fff; padding: 1.6rem 1rem; text-align: center; }
@media (max-width: 640px) { .gplr-stats { grid-template-columns: repeat(2, 1fr); } }
.gplr-stat__num {
  font-family: var(--gplr-font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gplr-blue);
  line-height: 1;
}
.gplr-stat__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gplr-gray);
  margin-top: .4rem;
}

/* ---------- Secciones ---------- */
.gplr-section { padding: 4rem 1.5rem; }
.gplr-section--light { background: var(--gplr-light); }
.gplr-section__head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.gplr-section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.gplr-section__title span { color: var(--gplr-red); }

/* ---------- Tarjetas ---------- */
.gplr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
.gplr-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); transition: transform .2s ease, box-shadow .2s ease; }
.gplr-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.14); }
.gplr-card__body { padding: 1.5rem; }

/* ---------- Video responsivo (16:9) ---------- */
.gplr-video { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 44px rgba(0,0,0,.18); }
.gplr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gplr-video--link { display: block; background-size: cover; background-position: center; cursor: pointer; }
.gplr-video--link::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.28); transition: background .25s ease; }
.gplr-video--link:hover::after { background: rgba(0,0,0,.12); }
.gplr-video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 86px; height: 86px; border-radius: 50%; background: var(--gplr-red); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .25s ease; }
.gplr-video--link:hover .gplr-video__play { transform: translate(-50%,-50%) scale(1.08); }
.gplr-video__play::before { content: ''; border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent #fff; margin-left: 6px; }

/* ---------- Ocultar título de texto del sitio en el header (ya está en el logo) ---------- */
.site-branding .site-title-container { display: none; }

/* ---------- Carrusel del hero ---------- */
.gplr-carousel { position: relative; height: 78vh; min-height: 540px; overflow: hidden; background: #0a0a0a; }
.gplr-carousel:focus { outline: none; }
.gplr-carousel__viewport { position: absolute; inset: 0; }
.gplr-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background-size: cover; background-position: center; will-change: opacity; }
.gplr-slide.is-active { opacity: 1; }
.gplr-slide--video { display: flex; align-items: center; justify-content: center; background: #000; }
.gplr-embed { position: relative; width: min(92%, 1080px); aspect-ratio: 16 / 9; background-size: cover; background-position: center; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.gplr-embed::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.22); transition: background .25s ease; }
.gplr-embed:hover::after { background: rgba(0,0,0,.08); }
.gplr-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.gplr-embed__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 4; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--gplr-red); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s ease; }
.gplr-embed__play:hover { transform: translate(-50%,-50%) scale(1.08); }
.gplr-embed__play::before { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }

.gplr-carousel__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem 5rem; color: #fff; z-index: 5; pointer-events: none; transition: opacity .45s ease; }
.gplr-carousel__overlay > * { pointer-events: auto; }
.gplr-carousel__overlay .gplr-hero__subtitle { max-width: 720px; }
.gplr-carousel.is-video-active .gplr-carousel__overlay { opacity: 0; pointer-events: none; }

.gplr-carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s ease; display: flex; align-items: center; justify-content: center; }
.gplr-carousel__arrow:hover { background: rgba(255,255,255,.38); }
.gplr-carousel__arrow--prev { left: 18px; }
.gplr-carousel__arrow--next { right: 18px; }

.gplr-carousel__dots { position: absolute; bottom: 4.75rem; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; }
.gplr-carousel__dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.gplr-carousel__dots button.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 640px) {
  .gplr-carousel { height: 72vh; min-height: 460px; }
  .gplr-carousel__arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .gplr-carousel__overlay { padding-bottom: 4rem; }
}

/* ---------- Categorías por edad (La Carrera) ---------- */
.gplr-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 920px; margin: 0 auto; }
.gplr-cat { background: #fff; border: 1px solid #e7ebee; border-top: 3px solid var(--gplr-blue); border-radius: 14px; padding: 1.5rem 1rem; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.gplr-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.12); border-top-color: var(--gplr-red); }
.gplr-cat__range { display: block; font-family: var(--gplr-font-head); font-size: 2rem; font-weight: 900; color: var(--gplr-blue); line-height: 1; }
.gplr-cat:hover .gplr-cat__range { color: var(--gplr-red); }
.gplr-cat__unit { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gplr-gray); margin-top: .45rem; }
@media (max-width: 600px) { .gplr-cats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- El Circuito (La Carrera) ---------- */
.gplr-circuit { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.8rem; align-items: center; max-width: 1120px; margin: 0 auto; }
.gplr-circuit__map img { width: 100%; height: auto; display: block; }
.gplr-eyebrow { display: inline-block; color: var(--gplr-blue); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: .5rem; }
.gplr-circuit__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin: 0 0 1rem; }
.gplr-circuit__info p { margin-bottom: .9rem; color: #37424b; }
.gplr-circuit__sub { color: var(--gplr-blue); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; font-weight: 800; margin: 1.4rem 0 .6rem; }
.gplr-specs { list-style: none; padding: 0; margin: 0; }
.gplr-specs li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid #e3e8ec; }
.gplr-specs li:last-child { border-bottom: 0; }
.gplr-specs li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--gplr-red); }
.gplr-specs li strong { color: var(--gplr-ink); font-weight: 700; }
@media (max-width: 820px) { .gplr-circuit { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Contacto ---------- */
.gplr-contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; max-width: 1080px; margin: 0 auto; align-items: start; }
.gplr-contact__info { background: var(--gplr-ink); color: #fff; border-radius: 16px; padding: 2rem 1.8rem; }
.gplr-contact__info h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1.2rem; }
.gplr-contact__info ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.gplr-contact__info li { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12); line-height: 1.5; }
.gplr-contact__info a { color: var(--gplr-blue); text-decoration: none; }
.gplr-contact__info a:hover { text-decoration: underline; }
.gplr-contact__info p { font-size: .9rem; color: rgba(255,255,255,.8); margin: 0; }
.gplr-contact__info p a { color: #fff; }

.gplr-contact__form { background: #fff; border: 1px solid #e7ebee; border-radius: 16px; padding: 2rem 1.8rem; box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.gplr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gplr-field { margin: 0 0 1rem; }
.gplr-field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .35rem; color: var(--gplr-ink); }
.gplr-field > label > span { color: var(--gplr-red); }
.gplr-contact__form input[type="text"],
.gplr-contact__form input[type="email"],
.gplr-contact__form input[type="tel"],
.gplr-contact__form textarea {
  width: 100%; border: 1px solid #d7dde2; border-radius: 10px; padding: .7rem .85rem;
  font: inherit; color: var(--gplr-ink); background: #fbfcfd; transition: border-color .2s ease, box-shadow .2s ease;
}
.gplr-contact__form input:focus,
.gplr-contact__form textarea:focus { outline: none; border-color: var(--gplr-blue); box-shadow: 0 0 0 3px rgba(0,163,224,.15); background: #fff; }
.gplr-contact__form textarea { min-height: 130px; resize: vertical; }
.gplr-form__submit { margin: .5rem 0 0; }
.gplr-contact__form .wpcf7-spinner { margin-left: 10px; }
.wpcf7-response-output { border-radius: 10px; margin: 1rem 0 0 !important; padding: .7rem 1rem !important; font-size: .9rem; }
.wpcf7-not-valid-tip { color: var(--gplr-red); font-size: .8rem; }
@media (max-width: 820px) { .gplr-contact { grid-template-columns: 1fr; } .gplr-form__row { grid-template-columns: 1fr; } }

/* Botón submit del formulario CF7 con estilo de marca */
.gplr-contact__form input[type="submit"],
.wpcf7-form input.wpcf7-submit {
  background: var(--gplr-red); color: #fff; border: 0; border-radius: 999px;
  padding: .85em 2.2em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: transform .15s ease, background .2s ease; font-family: var(--gplr-font-head);
}
.gplr-contact__form input[type="submit"]:hover,
.wpcf7-form input.wpcf7-submit:hover { background: #c10d15; transform: translateY(-2px); }

/* Opciones de tipo de solicitud (radios) y aceptación */
.gplr-contact__form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .3rem; }
.gplr-contact__form .wpcf7-radio .wpcf7-list-item { margin: 0; }
.gplr-contact__form .wpcf7-radio .wpcf7-list-item label { display: flex; align-items: center; gap: .5rem; border: 1px solid #d7dde2; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; font-size: .9rem; transition: border-color .2s, background .2s; }
.gplr-contact__form .wpcf7-radio .wpcf7-list-item label:hover { border-color: var(--gplr-blue); }
.gplr-contact__form .wpcf7-radio .wpcf7-list-item label span { color: var(--gplr-ink); }
.gplr-contact__form .wpcf7-radio input[type="radio"]:checked + span { color: var(--gplr-red); }
.gplr-field--accept { font-size: .9rem; color: var(--gplr-gray); }
.gplr-field--accept a { color: var(--gplr-blue-dark); }

/* ---------- Sponsor principal (Scotiabank) ---------- */
.gplr-presenta { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.8rem 1.5rem; background: #fff; border-bottom: 1px solid #eef1f3; }
.gplr-presenta__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--gplr-gray); }
.gplr-presenta__logo { height: 60px; width: auto; max-width: 90%; }
@media (max-width: 600px) { .gplr-presenta__logo { height: 46px; } }

.gplr-sponsor-main { max-width: 560px; margin: 0 auto; text-align: center; }
.gplr-sponsor-main__card { background: #fff; border: 1px solid #e7ebee; border-top: 4px solid var(--gplr-red); border-radius: 16px; padding: 2.6rem 2rem; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.gplr-sponsor-main__card img { height: 92px; width: auto; max-width: 100%; }
.gplr-eyebrow--red { color: var(--gplr-red); }

.gplr-sponsor-main + .gplr-sponsor-main { margin-top: 2.2rem; }
.gplr-sponsor-main__card--auto img { width: 320px; height: auto; max-width: 100%; }

/* ---------- Asistente FAQ (chatbot) ---------- */
.gplr-chat-btn { position: fixed; bottom: 22px; right: 22px; z-index: 9998; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--gplr-red); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(236,17,26,.4); display: flex; align-items: center; justify-content: center; transition: transform .2s ease, opacity .2s ease; }
.gplr-chat-btn:hover { transform: scale(1.07); }
.gplr-chat-btn.is-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }

.gplr-chat-panel { position: fixed; bottom: 22px; right: 22px; z-index: 9999; width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 44px); background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.gplr-chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.gplr-chat-header { background: var(--gplr-red); color: #fff; padding: .9rem 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.gplr-chat-header__t { font-family: var(--gplr-font-head); font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.gplr-chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 3px rgba(110,231,168,.3); }
.gplr-chat-close { background: transparent; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }

.gplr-chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #f7f9fa; display: flex; flex-direction: column; gap: .6rem; }
.gplr-chat-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.gplr-chat-msg a { color: var(--gplr-blue-dark); font-weight: 600; }
.gplr-chat-msg--bot { background: #fff; border: 1px solid #e7ebee; align-self: flex-start; border-bottom-left-radius: 4px; }
.gplr-chat-msg--user { background: var(--gplr-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.gplr-chat-msg--user a { color: #fff; }

.gplr-chat-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.gplr-chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c2cbd2; animation: gplrTyping 1s infinite ease-in-out; }
.gplr-chat-typing i:nth-child(2) { animation-delay: .15s; }
.gplr-chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gplrTyping { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.gplr-chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem .8rem; border-top: 1px solid #eef1f3; background: #fff; }
.gplr-chat-chip { border: 1px solid #d7dde2; background: #fff; color: var(--gplr-ink); border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s; }
.gplr-chat-chip:hover { border-color: var(--gplr-red); color: var(--gplr-red); }

.gplr-chat-input { display: flex; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid #eef1f3; background: #fff; }
.gplr-chat-input input { flex: 1; border: 1px solid #d7dde2; border-radius: 999px; padding: .6rem .95rem; font: inherit; font-size: .9rem; outline: none; }
.gplr-chat-input input:focus { border-color: var(--gplr-blue); box-shadow: 0 0 0 3px rgba(0,163,224,.15); }
.gplr-chat-send { flex: 0 0 auto; width: 42px; border: 0; border-radius: 50%; background: var(--gplr-red); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.gplr-chat-send:hover { background: #c10d15; }

@media (max-width: 480px) { .gplr-chat-panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; } }

/* ---------- Íconos de tarjetas (Inicio) ---------- */
.gplr-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; margin-bottom: 1rem; }
.gplr-card__icon svg { width: 28px; height: 28px; }
.gplr-card__icon--red { background: rgba(236,17,26,.10); color: var(--gplr-red); }
.gplr-card__icon--blue { background: rgba(0,163,224,.12); color: var(--gplr-blue-dark); }

/* ---------- Mapa interactivo del circuito ---------- */
.gplr-routemap { width: 100%; height: 440px; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 44px rgba(0,0,0,.14); z-index: 1; }
.gplr-routemap .leaflet-control-attribution { font-size: 10px; }
@media (max-width: 820px) { .gplr-routemap { height: 340px; } }

/* ---------- Perfil de elevación ---------- */
.gplr-elev { position: relative; max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid #e7ebee; border-radius: 16px; padding: .6rem .8rem 0; box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.gplr-elev__svg { width: 100%; height: 200px; display: block; touch-action: none; }
.gplr-elev__area { fill: rgba(236,17,26,.12); stroke: none; }
.gplr-elev__line { fill: none; stroke: var(--gplr-red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.gplr-elev__grid { stroke: #eef1f3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.gplr-elev__ylab { fill: var(--gplr-gray); font-size: 11px; text-anchor: end; font-family: var(--gplr-font-head); }
.gplr-elev__xlab { fill: var(--gplr-gray); font-size: 11px; text-anchor: middle; font-family: var(--gplr-font-head); }
.gplr-elev__cursorline { stroke: var(--gplr-blue); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.gplr-elev__cursordot { fill: var(--gplr-blue); stroke: #fff; stroke-width: 2; }
.gplr-elev__hit { cursor: crosshair; }
.gplr-elev__tip { position: absolute; top: 6px; background: var(--gplr-ink); color: #fff; font-size: .78rem; padding: .25rem .55rem; border-radius: 7px; pointer-events: none; white-space: nowrap; font-weight: 600; }

/* Etiquetas (tooltips) de lugares en el mapa */
.gplr-tip { background: #fff; border: 0; border-radius: 7px; box-shadow: 0 3px 10px rgba(0,0,0,.18); font-size: 11px; font-weight: 600; color: var(--gplr-ink); padding: 3px 7px; }
.gplr-tip::before { display: none; }
.gplr-tip--pas { background: var(--gplr-red); color: #fff; }

/* Mapa + perfil juntos */
.gplr-mapwrap { max-width: 1100px; margin: 0 auto; }
.gplr-mapwrap .gplr-routemap { margin-bottom: 1rem; }
.gplr-mapnote { text-align: center; font-size: .85rem; color: var(--gplr-gray); margin-top: .8rem; }

/* Leyenda de lugares del circuito */
.gplr-legend { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem auto 0; max-width: 1000px; }
.gplr-legend__item { font-size: .82rem; background: #fff; border: 1px solid #e3e8ec; border-left: 3px solid var(--gplr-blue); border-radius: 8px; padding: .35rem .7rem; color: var(--gplr-gray); }
.gplr-legend__item b { color: var(--gplr-ink); font-weight: 700; }
.gplr-legend__item--pas { border-left-color: var(--gplr-red); }
.gplr-legend__item--hub { border-left-color: var(--gplr-ink); }

/* ---------- Inscritos ---------- */
.gplr-inscritos { max-width: 1000px; margin: 0 auto; }
.gplr-inscritos__bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.gplr-inscritos__bar input, .gplr-inscritos__bar select { border: 1px solid #d7dde2; border-radius: 10px; padding: .6rem .85rem; font: inherit; font-size: .92rem; background: #fff; }
.gplr-inscritos__bar input { flex: 1; min-width: 200px; }
.gplr-inscritos__bar input:focus, .gplr-inscritos__bar select:focus { outline: none; border-color: var(--gplr-blue); box-shadow: 0 0 0 3px rgba(0,163,224,.15); }
.gplr-inscritos__count { font-size: .85rem; color: var(--gplr-gray); margin: 0 0 .8rem; }
.gplr-inscritos__count .gplr-ins-shown { font-weight: 800; color: var(--gplr-ink); }
.gplr-inscritos__tablewrap { overflow-x: auto; border: 1px solid #e7ebee; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.gplr-inscritos__table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
.gplr-inscritos__table thead th { background: var(--gplr-ink); color: #fff; text-align: left; padding: .8rem 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; }
.gplr-inscritos__table tbody td { padding: .7rem 1rem; border-top: 1px solid #eef1f3; }
.gplr-inscritos__table tbody tr:nth-child(even) td { background: #fafbfc; }
.gplr-ins-num { color: var(--gplr-gray); width: 48px; }
.gplr-ins-tag { display: inline-block; background: rgba(0,163,224,.12); color: var(--gplr-blue-dark); font-weight: 600; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }

/* Barra de % en categorías */
.gplr-cat__bar { height: 6px; background: #eef1f3; border-radius: 999px; margin: .8rem 0 .45rem; overflow: hidden; }
.gplr-cat__bar span { display: block; height: 100%; background: var(--gplr-blue); border-radius: 999px; transition: width .4s ease; }
.gplr-cat:hover .gplr-cat__bar span { background: var(--gplr-red); }
.gplr-cat__stat { display: block; font-size: .8rem; color: var(--gplr-gray); }
.gplr-cat__stat b { color: var(--gplr-ink); font-size: 1rem; }

/* Etiqueta de tipo en tarjetas de turismo */
.gplr-card__tag { display: inline-block; background: rgba(0,163,224,.12); color: var(--gplr-blue-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .22rem .6rem; border-radius: 999px; margin-bottom: .7rem; }
.gplr-card__body h3 { margin-bottom: .5rem; }

/* Main sponsor (Scotiabank + Mitsubishi, recuadros separados) */
.gplr-mainsponsors { max-width: 620px; margin: 0 auto; text-align: center; }
.gplr-mainsponsors__card { background: #fff; border: 1px solid #e7ebee; border-top: 4px solid var(--gplr-red); border-radius: 16px; padding: 2.4rem 2rem; box-shadow: 0 12px 40px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; }
.gplr-mainsponsors__card + .gplr-mainsponsors__card { margin-top: 1.4rem; }
.gplr-mainsponsors__card img { width: auto; max-width: 100%; }
.gplr-mainsponsors__card--sb img { height: 64px; }
.gplr-mainsponsors__card--mm img { height: 44px; }
@media (max-width: 600px) { .gplr-mainsponsors__card--sb img { height: 46px; } .gplr-mainsponsors__card--mm img { height: 34px; } }

/* Foto en tarjetas de turismo */
.gplr-card__media { height: 190px; background-size: cover; background-position: center; background-color: #e3e8ec; }

/* ---------- Resultados ---------- */
.gplr-resultados { max-width: 1000px; margin: 0 auto; }
.gplr-res__years { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.2rem; flex-wrap: wrap; }
.gplr-res__year { border: 1px solid #d7dde2; background: #fff; color: var(--gplr-ink); font-weight: 800; font-family: var(--gplr-font-head); font-size: 1rem; padding: .5rem 1.4rem; border-radius: 999px; cursor: pointer; transition: all .2s ease; }
.gplr-res__year:hover { border-color: var(--gplr-red); color: var(--gplr-red); }
.gplr-res__year.is-active { background: var(--gplr-red); border-color: var(--gplr-red); color: #fff; }
.gplr-res__panel { display: none; }
.gplr-res__panel.is-active { display: block; }
.gplr-res-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Filas de resultados clickeables + ficha (modal) */
.gplr-res-row { cursor: pointer; }
.gplr-res-row:hover td { background: rgba(0,163,224,.07) !important; }
.gplr-rm { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.gplr-rm[hidden] { display: none; }
.gplr-rm__bg { position: absolute; inset: 0; background: rgba(10,15,20,.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.gplr-rm__card { position: relative; z-index: 1; background: #fff; border-radius: 18px; padding: 2rem 1.8rem 1.8rem; width: 460px; max-width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.gplr-rm__close { position: absolute; top: .7rem; right: .9rem; border: 0; background: transparent; font-size: 1.7rem; line-height: 1; color: var(--gplr-gray); cursor: pointer; }
.gplr-rm__year { display: inline-block; background: var(--gplr-red); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .7rem; border-radius: 999px; }
.gplr-rm__name { font-size: 1.5rem; margin: .8rem 0 .2rem; }
.gplr-rm__time { color: var(--gplr-gray); font-weight: 600; margin: 0 0 1.4rem; }
.gplr-rm__time::first-line { }
.gplr-rm__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gplr-rm__stat { background: var(--gplr-light); border-radius: 14px; padding: 1.1rem .6rem; display: flex; flex-direction: column; gap: .15rem; }
.gplr-rm__num { font-family: var(--gplr-font-head); font-size: 1.9rem; font-weight: 900; color: var(--gplr-blue); line-height: 1; }
.gplr-rm__lab { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gplr-ink); font-weight: 700; }
.gplr-rm__of { font-size: .75rem; color: var(--gplr-gray); }
@media (max-width: 460px) { .gplr-rm__stats { grid-template-columns: 1fr; } }

/* ---------- Perfil de elevación estilo terreno 3D ---------- */
.gplr-elev--terrain { background-color: #0b110f; background-size: cover; background-position: center; border: 0 !important; padding: 0 !important; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.gplr-elev--terrain .gplr-elev__svg { width: 100%; height: auto; display: block; }
.gplr-elev__xlab { fill: rgba(255,255,255,.5); font-size: 11px; text-anchor: middle; font-family: var(--gplr-font-head); }
.gplr-elev__leader { stroke: rgba(255,255,255,.28); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.gplr-elev__poilab { fill: #fff; font-size: 12px; font-weight: 700; font-family: var(--gplr-font-head); text-transform: uppercase; letter-spacing: .03em; text-anchor: start; }
.gplr-elev__poilab.is-pas { fill: #ff6b6b; }
.gplr-elev--terrain .gplr-elev__cursorline { stroke: #fff; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.gplr-elev--terrain .gplr-elev__cursordot { fill: #EC111A; stroke: #fff; stroke-width: 2; }
.gplr-elev--terrain .gplr-elev__hit { cursor: crosshair; }
.gplr-elev--terrain .gplr-elev__tip { top: 12px; }

/* ---------- Grid de auspiciadores ---------- */
.gplr-sponsorgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; max-width: 1000px; margin: 0 auto; }
.gplr-sponsorgrid__item { background: #fff; border: 1px solid #e7ebee; border-radius: 12px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 1rem; transition: transform .2s ease, box-shadow .2s ease; }
.gplr-sponsorgrid__item:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.gplr-sponsorgrid__item img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 480px) { .gplr-sponsorgrid { grid-template-columns: repeat(2, 1fr); } }
