/* styles.css */

/* --------- RESET SIMPLE --------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f3f3;
  color: #333;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
}

:root {
  --giganto-primary: #d84523;
  --giganto-accent: #34ccd7;
  --giganto-dark: #222222;
  --giganto-light-bg: #f3f3f3;
}

/* --------- LAYOUT GENERAL --------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

header,
section,
footer {
  background: #ffffff;
  border: 1px solid #dddddd;
  margin-bottom: 24px;
  padding: 16px 0;
}

header {
  margin-bottom: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* --------- PLACEHOLDERS EN GRIS --------- */
.placeholder {
  background: #e0e0e0;
  border: 1px dashed #b0b0b0;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.placeholder.image-lg {
  width: 100%;
  height: 220px;
  margin-bottom: 16px;
}

.placeholder.image-md {
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
}

.placeholder.image-md img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* llena el cuadro recortando lo que sobre */
  display: block;
}

.placeholder.image-sm {
  width: 100%;
  height: 80px;
  margin-bottom: 8px;
}

.placeholder.map {
  width: 100%;
  height: 220px;
  margin-top: 12px;
}

/* --------- HEADER / NAV --------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 2px solid var(--giganto-primary);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  width: 180px;
  height: 40px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.nav-menu a {
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
}

.nav-menu a:hover {
  background: rgba(52, 204, 215, 0.12);
  color: var(--giganto-primary);
}

.nav-cta {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--giganto-primary);
  color: #fff;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: #b9371c;
}

/* --------- HERO (UNA SOLA IMAGEN) --------- */
#hero {
  background: transparent;
  border: none;
  margin-bottom: 0;
  padding: 0;
}

/* el container del hero se estira a todo el ancho */
#hero .container {
  max-width: 100%;
  padding: 0;
}

.hero-single {
  position: relative;
}

/* contenedor de la imagen de hero, ocupa toda la primer vista */
.hero-image {
  width: 100%;
  min-height: calc(100vh - 80px); /* ajustá 80px según la altura real de tu header */
  margin: 0;
  padding: 24px 16px;

  display: flex;
  justify-content: center;
  align-items: center;

  background-image: url("img/hero-giganto.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative; /* para ::before */
}

/* capa de oscurecimiento suave sobre la foto */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.75)
  );
}

/* contenido encima de la imagen */
.hero-overlay {
  position: relative;
  max-width: min(90vw, 800px);
  text-align: center;
  margin: 0 auto;
  color: #ffffff;
}

.hero-logo {
  margin-bottom: 16px;
}

.hero-logo img {
  display: block;
  margin: 0 auto;
  width: min(60vw, 750px); /* tamaño del logo */
  height: auto;
}

/* Títulos y textos hero */
.hero-main-title {
  font-size: 1.8rem;
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #e9e9e9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  justify-content: center;
}

.hero-meta span {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}

.btn-wireframe {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--giganto-accent);
  background: transparent;
  font-size: 0.9rem;
  color: var(--giganto-accent);
}

.btn-wireframe:hover {
  background: var(--giganto-accent);
  color: #fff;
}

.btn-wireframe.primary {
  background: var(--giganto-primary);
  border-color: var(--giganto-primary);
  color: #fff;
}

.btn-wireframe.primary:hover {
  background: #b9371c;
  border-color: #b9371c;
}

.hero-countdown {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--giganto-accent);
  font-size: 0.9rem;
  text-align: center;
  margin: 0 auto;
  color: #ffffff;
}

/* --------- TITULOS DE SECCIÓN --------- */
section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--giganto-primary);
}

section h2::after {
  content: "";
  display: block;
  width: 40%;
  height: 3px;
  margin-top: 3px;
  background: linear-gradient(
    to right,
    var(--giganto-primary),
    var(--giganto-accent)
  );
}

/* --------- SPONSORS & PARTNERS --------- */
.sponsors-intro {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 120px;              /* antes 16px, por ejemplo */
  justify-content: center;
  align-items: flex-start;
}


.sponsor-logo {
  width: 190px;           /* un poquito más ancho */
  min-height: 130px;      /* altura mínima para que queden parejos */
  display: flex;
  flex-direction: column; /* texto arriba, logo abajo */
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 70px;       /* subimos un poco el espacio disponible para el logo */
  object-fit: contain;
}


.sponsor-role {
  display: block;
  font-size: 0.9rem;          /* un toque más grande */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}

/* opcional, mantener diferenciación de color */
.sponsor-role-organiza {
  color: var(--giganto-primary);
}

.sponsor-role-acompana {
  color: #666;
}

/* Solo para el bloque "Organizan y acompañan" */
.sponsors-tier-partners .sponsors-grid {
  display: grid;                 /* dejamos de usar flex acá */
  grid-auto-flow: column;        /* los pone en fila */
  column-gap: 100px;             /* separación bien marcada entre logos */
  justify-content: center;       /* centrados en el contenedor */
  align-items: flex-start;
}


/* --------- LA CARRERA --------- */
#la-carrera .race-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

.race-bullets {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 0.9rem;
}

.race-bullets li {
  margin-bottom: 6px;
}

.race-image {
  width: 100%;
  height: 250px;        /* mismo alto que tu viejo image-md */
  border-radius: 4px;
  overflow: hidden;     /* recorta lo que sobresalga */
}

.race-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* llena el bloque, recortando lo que sobra */
  display: block;
}


/* --------- DISTANCIAS & CIRCUITOS --------- */
#distancias .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.card-wireframe {
  background: #fafafa;
  border-radius: 4px;
  padding: 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--giganto-primary);
}

.card-wireframe h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--giganto-primary);
}

.card-meta {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Tabs / detalle circuitos */
.tabs-wireframe {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tab-item {
  padding: 6px 10px;
  background: #e5e5e5;
  border-radius: 4px;
  font-size: 0.8rem;
}

.tabs-content {
  border: 1px dashed #ccc;
  padding: 12px;
  font-size: 0.85rem;
  background: #fafafa;
}

/* pestaña seleccionada */
.tab-item.active {
  background: var(--giganto-primary);
  color: #fff;
}

.tabs-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.mapa-circuito {
  width: 100%;
  height: 320px;        /* alto del mapa */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* --------- INSCRIPCIÓN (CARDS) --------- */
.inscripcion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.inscripcion-card {
  background: #fafafa;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inscripcion-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--giganto-primary);
}

.inscripcion-precio {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.inscripcion-precio span {
  display: inline-block;
  margin-left: 4px;
  font-weight: 600;
  color: var(--giganto-primary);
}

.inscripcion-meta {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 8px;
}

.inscripcion-card .btn-wireframe.primary {
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

.inscripcion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  margin-top: 8px;
  justify-content: center;   /* centra horizontalmente el contenido */
}

.inscripcion-links span {
  display: inline-block;
}


/* --------- DESTACADO 3 CUOTAS --------- */
.pricing-highlight {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: linear-gradient(
    to right,
    rgba(216, 69, 35, 0.9),
    rgba(52, 204, 215, 0.9)
  );
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.pricing-highlight strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.pricing-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pricing-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}


/* --------- INFO CORREDOR --------- */
#info-corredor .runner-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 24px;
  font-size: 0.9rem;
}

.programa-list,
.info-block-list {
  border: 1px dashed #ccc;
  padding: 12px;
  background: #fafafa;
}

.info-block-list h4 {
  font-size: 0.95rem;
  margin-top: 8px;
  margin-bottom: 4px;
}

.info-block-list ul {
  padding-left: 18px;
  margin-bottom: 4px;
}

.reglamento-banner {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  background: #333;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

/* --------- VILLA EL CHOCÓN --------- */
#villa .villa-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 24px;
  align-items: flex-start;
}

.villa-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 0.85rem;
  margin-top: 12px;
}

.villa-col-block {
  padding: 10px;
  background: #fafafa;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

/* --------- FAQ --------- */
.faq-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
  background: #fafafa;
}

.faq-question {
  padding: 8px 10px;
  background: #e5e5e5;
  font-size: 0.9rem;
}

.faq-answer {
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #777;
}

/* --------- FAQ --------- */
.accordion-button:not(.collapsed) {
  background-color: rgba(216, 69, 35, 0.08); /* var(--giganto-primary) suavizado */
  color: var(--giganto-primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.1rem rgba(52, 204, 215, 0.5);
}

/* --------- FOOTER --------- */
footer {
  background: #111111;
  color: #f5f5f5;
  border-top: 3px solid var(--giganto-primary);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 16px;
  font-size: 0.85rem;
  align-items: center;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 150px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links strong,
.footer-social-contact strong {
  color: var(--giganto-accent);
}

.footer-links span:hover {
  color: var(--giganto-primary);
}

.footer-social-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  display: block;
}


.social-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 1px solid #ccc;
}

/* --------- SPONSORS & PARTNERS --------- */
.sponsors-intro {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

.sponsors-tier {
  margin-bottom: 20px;
}

.sponsors-tier-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--giganto-dark);
}

/* Diferenciar un poquito cada nivel */
.sponsors-tier-main .sponsors-tier-title {
  color: var(--giganto-primary);
}

.sponsors-tier-sponsors .sponsors-tier-title {
  color: var(--giganto-accent);
}

.sponsors-tier-partners .sponsors-tier-title {
  color: #777;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.sponsor-logo {
  width: 160px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* si usás <img> dentro del sponsor-logo */
.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* --------- RESPONSIVE --------- */
@media (max-width: 900px) {
  #la-carrera .race-grid,
  #info-corredor .runner-grid,
  #villa .villa-grid,
  footer .footer-grid {
    grid-template-columns: 1fr;
  }

  #distancias .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }


@media (max-width: 600px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-menu {
    display: none; /* wireframe: asumimos menú hamburguesa en versión final */
  }

  #distancias .cards-grid,
  #unico .features-grid {
    grid-template-columns: 1fr;
  }

  .villa-columns {
    grid-template-columns: 1fr;
  }

  .btn-wireframe,
  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero-image {
    min-height: calc(100vh - 70px);
    padding: 16px;
  }

  .hero-main-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
}

  .tabs-content-grid {
    grid-template-columns: 1fr;
  }

  .mapa-circuito {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .sponsors-grid {
    justify-content: center;
  }

  .sponsor-logo {
    width: 45%;
    min-width: 140px;
  }
}


/* --------- DISTANCIAS BLUR "PRÓXIMAMENTE" --------- */
.distancias-blur-wrapper {
  position: relative;
}

/* todo el contenido se desenfoca y no es clickeable */
.distancias-blur-inner {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* capa superior con el texto */
.distancias-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* para que no capture clicks si después habilitás algo detrás */
}

.distancias-blur-overlay span {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* en mobile, tipito un poco más chico */
@media (max-width: 600px) {
  .distancias-blur-overlay span {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
