/**
 * Landing Premium Seltzer Durazno — index.php (+ index3.css)
 */

:root {
  --durazno-peach: #f28b82;
  --durazno-peach-dark: #e0786f;
  --durazno-teal: #003b49;
  --durazno-teal-soft: #0a4d5c;
}

@keyframes hero-durazno-fruit-float {
  0%,
  100% {
    transform: translate(75%, -50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translate(75%, -50%) translateY(-0.55rem) rotate(0.6deg);
  }
}

.page-index2 {
  margin: 0;
}

/* Misma pantalla de carga que index: color durazno (por si custom.css viejo en caché) */
.preloader {
  background: #f28b82 !important;
}

.page-index2 #container {
  padding: 0;
}

/* ——— Hero ——— */
/* Rollback del acople lata+arena: restaurar este archivo desde assets/css/index2.css.hero-backup */

.hero-durazno {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.75rem) 1rem;
}

/* Fondo playa: ancla cerca del borde inferior y se corrige con calc para alinear con la franja .hero-durazno__arena */
.hero-durazno__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/playa-1920.png");
  background-position: center calc(100% - clamp(3rem, 4vh, 3.25rem));
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-durazno__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.hero-durazno__logo {
  flex-shrink: 0;
  margin: clamp(0.35rem, 1.5vw, 1rem) auto 0;
  width: 100%;
  max-width: min(92vw, 400px);
  text-align: center;
  line-height: 0;
}

.hero-durazno__logo-inner {
  position: relative;
  display: inline-block;
  max-width: 400px;
  width: 100%;
}

.hero-durazno__logo-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  vertical-align: top;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.35));
}

/* Rebanada: esquina inferior derecha del logo; flotación suave */
.hero-durazno__logo-fruit {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(160px, 72vw);
  max-width: none;
  height: auto;
  pointer-events: none;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 59, 73, 0.2));
  animation: hero-durazno-fruit-float 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-durazno__logo-fruit {
    animation: none;
    transform: translate(75%, -50%);
  }
}

/* Área del producto: ocupa el espacio restante; en escritorio la lata queda bajo el logo, no flotando al centro */
.hero-durazno__scene {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 12rem;
}

/* Contenedor común: la arena se superpone a la lata por la parte inferior */
.hero-durazno__stack {
  position: relative;
  width: min(94vw, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-durazno__product {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * Si el PNG incluye mucha arena abajo, translateY sube el bloque para que la lata quede
 * más centrada en pantalla sin recortar frutas al costado (object-fit: contain).
 */
.hero-durazno__product img {
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  object-position: center center;
  transform: translateY(clamp(-0.75rem, -5.5vh, -2.75rem));
  mix-blend-mode: screen;
  filter: drop-shadow(0 12px 28px rgba(0, 59, 73, 0.2));
}

/* Capa encima de la lata, anclada abajo; ancho completo del viewport */
.hero-durazno__arena {
  position: absolute;
  left: 50%;
  /* Escritorio: franja más baja; en ≤1024px se sube un poco (ver media queries) */
  bottom: clamp(-2.5rem, -5.5vh, -0.65rem);
  /* Mismo translateY que .hero-durazno__product img para que la arena suba con la lata */
  transform: translateX(-50%) translateY(clamp(-0.75rem, -5.5vh, -2.75rem));
  width: 100vw;
  max-width: none;
  max-height: clamp(3.5rem, 20vh, 10rem);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-durazno__arena img {
  width: 100%;
  min-width: 100%;
  height: auto;
  min-height: clamp(4rem, 24vh, 12rem);
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* Escritorio: menos aire entre logo y lata (no aplica a ≤1024px: allí la lata va abajo) */
@media (min-width: 1025px) {
  .hero-durazno__logo {
    margin-bottom: clamp(-1.25rem, -3.5vw, -0.5rem);
  }

  .hero-durazno__stack {
    margin-top: clamp(-4.75rem, -8.5vw, -2.75rem);
  }

  .hero-durazno__product img {
    transform: translateY(clamp(-2.1rem, -9.5vh, -5rem));
  }

  .hero-durazno__arena {
    transform: translateX(-50%) translateY(clamp(-2.1rem, -9.5vh, -5rem));
  }
}

/* Tablet y móvil: menos “estirado” en alto, playa alineada al borde inferior, lata/arena abajo */
@media (max-width: 1024px) {
  .hero-durazno {
    min-height: min(100dvh, 100svh);
    padding-bottom: clamp(0.5rem, 2vw, 1.25rem);
  }

  .hero-durazno__scene {
    flex: 1 1 auto;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .hero-durazno__arena {
    bottom: clamp(-1.35rem, -4.5vh, -0.35rem);
    max-height: clamp(3.25rem, 17vh, 9rem);
  }

  .hero-durazno__arena img {
    min-height: clamp(3.25rem, 20vh, 10rem);
    object-position: center bottom;
  }
}

@media (max-width: 768px) {
  .hero-durazno__logo {
    max-width: min(88vw, 280px);
  }

  .hero-durazno__logo-inner {
    max-width: 280px;
  }

  .hero-durazno__logo-img {
    max-width: 280px;
  }

  .hero-durazno__logo-fruit {
    width: min(100px, 48vw);
  }

  .hero-durazno__product img {
    max-height: min(46vh, 380px);
    transform: translateY(clamp(-0.1rem, -2.25vh, -1rem));
  }

  .hero-durazno__arena {
    bottom: clamp(-1.5rem, -5.25vh, -0.45rem);
    max-height: clamp(3rem, 16vh, 8rem);
    transform: translateX(-50%) translateY(clamp(-0.1rem, -2.25vh, -1rem));
  }

  .hero-durazno__arena img {
    min-height: clamp(3rem, 19vh, 9rem);
  }
}

/* ——— Bloques heredados (información + formulario) ——— */
.page-index2 .section-information h2 {
  color: var(--durazno-teal);
}

.page-index2 .section-information .index-ubicaciones-cta {
  text-align: center;
  margin-top: 2.75rem;
  padding-top: 1.15rem;
  margin-bottom: 0;
}

.page-index2 .section-information .index-ubicaciones-cta a {
  color: var(--durazno-teal);
  font-family: 'Roboto-Bold', 'Roboto-Regular', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--durazno-peach);
  padding-bottom: 0.15em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-index2 .section-information .index-ubicaciones-cta a:visited {
  color: var(--durazno-teal);
}

.page-index2 .section-information .index-ubicaciones-cta a:hover,
.page-index2 .section-information .index-ubicaciones-cta a:focus {
  color: var(--durazno-teal-soft);
  border-bottom-color: var(--durazno-peach-dark);
  text-decoration: none;
}

.page-index2 .section-form {
  background: #fff;
}

.page-index2 .section-form .form button#btn-guardar,
.page-index2 .section-form .form button[data-form="frm-premium-seltzer"] {
  background: var(--durazno-peach);
  border-color: var(--durazno-peach-dark);
}

.page-index2 .section-form .form button#btn-guardar:hover,
.page-index2 .section-form .form button[data-form="frm-premium-seltzer"]:hover {
  background: var(--durazno-peach-dark);
}

.page-index2 .text-rojo {
  color: var(--durazno-peach-dark) !important;
}

.page-index2 footer {
  background: var(--durazno-teal);
  color: rgba(255, 255, 255, 0.9);
}

.page-index2 footer p {
  margin: 0;
}

/* Popup éxito: línea introductoria al código */
.page-index2 .popup .box-content .content-popup p {
  color: #fff;
  font-family: 'Roboto-Bold', 'Roboto-Regular', system-ui, -apple-system, sans-serif;
}
