/* ==========================================================================
   SIDERAL DOGTREK - HERO VARIANTE A: TIPOGRAFÍA REFINADA & PURA
   Sin cajas oscuras ni sombras invasivas. Tipografía de revista outdoor.
   ========================================================================== */

/* Hero Container */
.hero-cinematic {
  position: relative;
  min-height: calc(100vh - var(--nav-height) - 35px);
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #12100E;
}

/* Background overlay con degradado fotográfico limpio */
.hero-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(15, 14, 12, 0.45) 0%,
    rgba(15, 14, 12, 0.12) 30%,
    rgba(15, 14, 12, 0.35) 60%,
    rgba(15, 14, 12, 0.85) 100%
  );
  pointer-events: none;
}

/* Hero Content Layer */
.hero-content-layer {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 2.5rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: auto;
  gap: 2rem;
}

.hero-main-wrapper {
  max-width: 580px;
  background: none;
  padding: 0;
  box-shadow: none;
}

/* Píldora de ubicación minimalista */
.hero-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 1.1rem;
  background: rgba(250, 247, 242, 0.15);
  border: 1px solid rgba(250, 247, 242, 0.3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

.hero-location-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-ochre);
}

.hero-location-pill .pill-short {
  display: none;
}

/* Título con Tipografía Editorial Pura (Fraunces / Serif Clásica) */
.hero-main-title {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-size: clamp(2.15rem, 4.3vw, 3.45rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-main-title .mbr {
  display: none;
}

.hero-main-title em {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1em;
  font-style: italic;
  font-weight: 400;
  color: #FAF7F2;
  border-bottom: 2px solid var(--color-terracotta);
  padding-bottom: 2px;
}

/* Bajada con máxima legibilidad tipográfica */
.hero-main-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  color: rgba(250, 247, 242, 0.95);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 680px;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-tagline {
    font-size: min(0.95rem, 2.9vw);
    letter-spacing: 0.1em;
  }

  .hero-specs-dock {
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
  }

  /* Foto arriba (siluetas visibles) y texto debajo sobre fondo oscuro */
  .hero-cinematic {
    max-height: none;
    background-color: #12100E;
  }

  .hero-slider-wrapper {
    inset: 0 0 auto 0;
    height: 330px;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  }

  .hero-slide-img {
    object-position: 93% 50%;
    margin-top: -40px;
  }

  .hero-slider-overlay {
    inset: 0 0 auto 0;
    height: 330px;
  }

  .hero-content-layer {
    padding-top: 185px;
  }

  .hero-main-desc {
    margin-bottom: 1.1rem;
  }

  .hero-location-pill {
    padding: 0.4rem 0.8rem;
    gap: 0.5rem;
    font-size: min(0.7rem, calc((100vw - 106px) / 25.6));
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .hero-location-pill .pill-long {
    display: none;
  }

  .hero-location-pill .pill-short {
    display: inline;
  }
}

/* Mobile: foto con el mismo zoom de siempre (330px, se ve la piedra), pastilla arriba y título + botones
   apoyados abajo; las 3 specs quedan para después del scroll. */
@media (max-width: 768px) {
  .hero-cinematic {
    padding: 0 0 2.5rem;
  }

  /* La foto llega hasta justo arriba del título (~250px de texto + botones), así
     la piedra queda a la vista y no debajo del texto */
  .hero-slider-wrapper,
  .hero-slider-overlay {
    height: max(330px, calc(100vh - var(--nav-height) - 250px));
    height: max(330px, calc(100svh - var(--nav-height) - 250px));
  }

  .hero-slide-img {
    margin-top: 0;
    object-position: 88% 50%;
  }

  .hero-content-layer {
    padding-top: 0;
  }

  .hero-main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    padding: 1.1rem 0 1.5rem;
  }

  /* Pastilla arriba de todo, sobre la foto; el resto se va al fondo */
  .hero-location-pill {
    margin-bottom: auto;
  }

  .hero-main-ctas {
    width: 100%;
    margin-bottom: 0;
  }
}

/* WhatsApp flotante oculto al abrir la página (en mobile pisaría "Ver Itinerario"; en compu se
   pidió igual): aparece al empezar a scrollear y ya queda (js/main.js §8) */
.floating-whatsapp.over-hero {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.hero-main-desc strong {
  font-weight: 600;
  color: #FFFFFF;
}

/* CTAs */
.hero-main-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  /* Título en 3 líneas: mismo tamaño (34,4px) hasta 390px; en pantallas más chicas se ajusta lo justo */
  .hero-main-title {
    font-size: min(2.15rem, calc((100vw - 54px) / 9.75));
    margin-right: -10px;
  }

  .hero-main-title .mbr {
    display: inline;
  }

  .hero-main-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .hero-main-ctas .btn {
    padding: 0.9rem 0.5rem;
    font-size: min(1rem, calc(((100vw - 76px) / 2 - 20px) / 9.2));
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero-main-ctas .cta-extra {
    display: none;
  }
}

/* Barra inferior de 3 especificaciones */
.hero-specs-dock {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  background: rgba(18, 16, 14, 0.65);
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 780px;
}

/* Mobile: filas alineadas a la izquierda (va después de la regla base para no quedar pisado) */
@media (max-width: 768px) {
  .hero-specs-dock {
    align-items: flex-start;
  }
}
