/* ═══════════════════════════════════════════════════
   TURMEON — Custom overrides (post-Webflow)
   ═══════════════════════════════════════════════════ */

:root {
  --tm-paper: var(--dawn-pink-color);
}

html,
body {
  font-family: var(--_font-famaly---cabinet-grotesk-font-family, 'Poppins', sans-serif);
  background-color: var(--dawn-pink-color);
}

body,
main,
.page-wrapper,
.page-content {
  background-color: var(--dawn-pink-color);
}

/* ── Hero section: full viewport height ── */
.hero-section-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive: tablet */
@media screen and (max-width: 991px) {
  .hero-section-inner {
    min-height: 100vh;
  }
}

/* Responsive: small tablet */
@media screen and (max-width: 767px) {
  .hero-section-inner {
    min-height: 100vh;
    min-height: 100svh; /* safe viewport height for mobile browsers */
  }
}

/* Responsive: mobile */
@media screen and (max-width: 479px) {
  .hero-section-inner {
    min-height: 100vh;
    min-height: 100svh;
  }
}

/* ── Instagram ticker: imágenes cuadradas con cover ── */
.menue-ticker-img-box {
  width: 280px;
  min-width: 280px;
  height: 280px;
  overflow: hidden;
}

.menue-ticker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive: tamaños de img-box coherentes con webflow */
@media screen and (max-width: 991px) {
  .menue-ticker-img-box {
    width: 229px;
    min-width: 229px;
    height: 229px;
  }
}
@media screen and (max-width: 767px) {
  .menue-ticker-img-box {
    width: 161px;
    min-width: 161px;
    height: 161px;
  }
}
@media screen and (max-width: 479px) {
  .menue-ticker-img-box {
    width: 144px;
    min-width: 144px;
    height: 144px;
  }
}

/* ── Ticker marquee animation (replaces Webflow IX2) ── */

/* Override Webflow flex on ticker wrappers so track can overflow */
.top-ticker-wrapper,
.menue-ticker-wrapper {
  display: block;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* Ticker track: wrapper interno con 3 copias idénticas.
   Debe ser más ancho que el viewport para que el loop funcione. */
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
}

/* Top ticker (envío gratis): velocidad media */
.ticker-track--medium {
  animation-duration: 25s;
}

/* Instagram ticker: más lento (15 imágenes grandes) */
.ticker-track--slow {
  animation-duration: 60s;
}

/* Footer ticker: más rápido */
.ticker-track--fast {
  animation-duration: 15s;
}

/* ── Newsletter exit-intent popup (neobrutalista) ── */

.newsletter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99998;
  background-color: rgba(37, 35, 35, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.newsletter-popup-modal {
  background-color: var(--dawn-pink-color);
  border: 1px solid var(--zeus);
  border-radius: 0;
  max-width: 480px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  box-shadow: 6px 6px 0px var(--zeus);
}

.newsletter-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 1px solid transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--zeus);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--tm-dur-instant, 150ms) ease-out,
              border-color var(--tm-dur-instant, 150ms) ease-out;
  padding: 0;
}

.newsletter-popup-close:hover {
  color: var(--mahogany);
  border-color: var(--zeus);
}

.newsletter-popup-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.newsletter-popup-discount {
  font-family: 'Gobold', sans-serif;
  font-size: 56px;
  line-height: 1;
  color: var(--mahogany);
  margin: 0;
  text-transform: uppercase;
}

.newsletter-popup-title {
  font-family: 'Gobold', sans-serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--title-color);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-popup-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--zeus);
  margin: 16px 0 24px;
  line-height: 1.5;
}

.newsletter-popup-form {
  display: flex;
  gap: 12px;
}

.newsletter-popup-input {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  border: 1px solid var(--zeus);
  border-radius: 0;
  padding: 14px 16px;
  background: var(--white);
  color: var(--zeus);
  height: 52px;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-popup-input:focus {
  border-color: var(--mahogany);
}

.newsletter-popup-input::placeholder {
  color: color-mix(in srgb, var(--zeus) 45%, transparent);
}

.newsletter-popup-submit {
  background-color: var(--mahogany);
  color: var(--dawn-pink-color);
  font-family: 'Gobold', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--zeus);
  border-radius: 0;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--zeus);
  transition: transform var(--tm-dur-instant, 150ms) var(--tm-ease-out, ease-out),
              box-shadow var(--tm-dur-instant, 150ms) var(--tm-ease-out, ease-out);
  white-space: nowrap;
  height: 52px;
}

.newsletter-popup-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--zeus);
}

.newsletter-popup-submit:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--zeus);
}

.newsletter-popup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 var(--zeus);
}

.newsletter-popup-error {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--mahogany);
  margin-top: 8px;
}

.newsletter-popup-legal {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: color-mix(in srgb, var(--zeus) 45%, transparent);
  line-height: 1.4;
  margin-top: 16px;
}

.newsletter-popup-legal a {
  color: var(--mahogany);
  text-decoration: underline;
}

.newsletter-popup-legal a:hover {
  color: var(--saffron-mango);
}

/* Success state */
.newsletter-popup-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.newsletter-popup-success-title {
  font-family: 'Gobold', sans-serif;
  font-size: 28px;
  color: var(--mahogany);
  margin: 0;
  text-transform: uppercase;
}

.newsletter-popup-success-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--zeus);
  margin: 8px 0 16px;
  line-height: 1.5;
}

.newsletter-popup-code {
  font-family: 'Gobold', sans-serif;
  font-size: 28px;
  background: var(--saffron-mango);
  color: var(--zeus);
  padding: 10px 32px;
  border: 1px solid var(--zeus);
  display: inline-block;
  letter-spacing: 3px;
  box-shadow: 6px 6px 0 var(--zeus);
}

/* Mobile */
@media screen and (max-width: 479px) {
  .newsletter-popup-modal {
    padding: 32px 20px;
  }

  .newsletter-popup-discount {
    font-size: 44px;
  }

  .newsletter-popup-title {
    font-size: 22px;
  }

  .newsletter-popup-text {
    font-size: 14px;
  }

  .newsletter-popup-form {
    flex-direction: column;
  }

  .newsletter-popup-submit {
    width: 100%;
  }

  .newsletter-popup-code {
    font-size: 22px;
    padding: 8px 20px;
  }
}

/* Ocultar ticker en pantallas pequeñas (portátil) */
/* Ticker oculto en portátiles y pantallas no grandes */
@media screen and (max-height: 900px) {
  .top-ticker { display: none !important; }
}
@media screen and (max-width: 1440px) {
  .top-ticker { display: none !important; }
}

/* Gilda game canvas — completamente transparente, sin bordes */
#gilda-canvas {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
