/* FOOTER / NEWSLETTER — origen: sections/footer-newsletter.html
   + fondo de la sección (configurado en Squarespace, no venía en el código).
   Fase 2: el fondo está separado en capas y las hojas se mecen; el contenido entra al hacer scroll
   (js/footer.js). Flodesk 69456637e33705e9c88d044b sin cambios. */

/* --- Sección con imagen de fondo (tema oscuro) --- */
.footer-section {
  background-color: var(--sq-texto);
  padding: 175px 26px 140px;          /* mobile: bloque en y=175, 140px abajo */
  overflow: hidden;
}
/* Escenario de hojas: footer.js lo dimensiona como "cover" (igual que antes la imagen:
   object-position 50.5% 100%), así las capas quedan exactamente sobre la composición original. */
.footer-stage { z-index: 0; left: 0; top: 0; }
.footer-stage .footer-video { object-fit: cover; }

/* REVEAL: el contenido (main) pasa por encima y el footer queda fijo debajo */
.site-main { position: relative; z-index: 1; background-color: #F9F6F0; }
.footer-section { position: sticky; bottom: 0; z-index: 0; }
.footer-section > .mose-footer-perfect-gap { position: relative; }

@media (min-width: 768px) {
  .footer-section { padding: 72px 50px 143px; }  /* desktop: bloque en y=72, 143px abajo */
}

:root {
  --mose-crema: #F9F6F0;
  --mose-dorado: #D4C5A5;
}

/* --- CONTENEDOR GENERAL --- */
.mose-footer-perfect-gap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 40px 20px;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 100;
}

/* --- DISEÑO DE TEXTO --- */
.graphic-text-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 50; /* ENCIMA del formulario */

  /* DESKTOP: Bajamos un poco el texto para solaparlo con estilo */
  transform: translateY(20px);
  margin-bottom: 0px;
}

.headline-clean {
  font-family: 'Almarai', sans-serif;
  font-size: 2.5rem;
  color: var(--mose-crema);
  line-height: 1.1;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.subtext-graphic-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  gap: 15px;
  margin-bottom: 15px;
}

.subtext-clean {
  font-size: 0.9rem;
  color: var(--mose-dorado);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.graphic-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--mose-dorado);
  opacity: 0.5;
}

.cta-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--mose-crema);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding-bottom: 10px; /* Espacio extra interno */
}

/* --- FORMULARIO FLODESK --- */
.flodesk-wrapper {
  width: 100%;
  min-height: 60px;
  position: relative;
  z-index: 10; /* DEBAJO del texto */

  /* DESKTOP: Superposición controlada (-40px) + espacio visual */
  margin-top: -40px;
  margin-bottom: 40px;
}

/* --- ICONOS SOCIALES --- */
.social-block-clean {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
  z-index: 110;
}

.social-block-clean a {
  color: var(--mose-crema) !important;
  font-size: 1.3rem !important;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0.7;
}

.social-block-clean a:hover {
  color: var(--mose-dorado) !important;
  opacity: 1;
  transform: translateY(-3px);
}

.credits-block-clean a {
  font-family: 'Outfit', sans-serif !important;
  color: var(--mose-crema) !important;
  font-size: 0.85rem !important;
  opacity: 0.4;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}
.credits-block-clean a:hover { opacity: 0.8; }

.heart-beat {
  display: inline-block;
  color: var(--mose-dorado);
  animation: heartbeat-anim 1.5s ease-in-out infinite both;
}

@keyframes heartbeat-anim {
  0%, 100% { transform: scale(1); }
  15%, 45% { transform: scale(1.25); }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .mose-footer-perfect-gap {
      padding: 40px 15px;
  }

  .headline-clean { font-size: 1.8rem; }

  /* 1. BAJAMOS EL TEXTO EN MÓVIL (Igual que antes) */
  .graphic-text-header {
     transform: translateY(40px);
  }

  /* 2. SUPERPOSICIÓN EN MÓVIL (Con más espacio) */
  /* Antes -110px, ahora -90px para dar esos 20px extra de aire */
  .flodesk-wrapper {
      margin-top: -90px !important;
  }

  .subtext-clean { font-size: 0.75rem; letter-spacing: 0.15em; }
  .subtext-graphic-row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .heart-beat { animation: none; }
}
