:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #102a43;
  --muted: #5f6c7b;
  --accent: #4d9fef;
  --accent-dark: #1778c2;
  --success: #1f8a70;
  --border: #d1dbe8;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, #f1f7fc 55%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
}

.intro-screen__bg {
  position: absolute;
  inset: 0;
  background-image: url("FONDO VERANO.jpg");
  background-position: center;
  background-size: cover;
  filter: blur(16px) brightness(1.05) saturate(1.1);
  opacity: 0.45;
}

.intro-screen__content {
  position: relative;
  width: min(560px, calc(100% - 2rem));
  text-align: center;
  padding: 2rem;
  border-radius: 32px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 65px rgba(16, 42, 67, 0.16);
}

.intro-logo {
  width: min(240px, 70%);
  max-width: 260px;
  margin: 0 auto 1.75rem;
  display: block;
}

.loader-card {
  padding: 1.25rem 0;
}

.loader-card p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
}

.progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 41, 67, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.2s ease;
}

.landing-content {
  display: none;
  position: relative;
  z-index: 1;
}

.landing-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.1) contrast(1.05) blur(0.8px);
}

.landing-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.18), transparent 35%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.68));
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55));
}

.intro-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, #031b3e 0%, #0f3e8d 100%);
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.topbar__carousel {
  flex: 1 1 320px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #95f0ff;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(149, 240, 255, 0.18);
}

.ticker-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.75rem auto 1.5rem;
  padding: 0.85rem 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 26, 64, 0.92);
  border: 1px solid rgba(64, 182, 255, 0.55);
  box-shadow: 0 0 36px rgba(2, 115, 249, 0.22);
}

.ticker {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: tickerScroll 18s linear infinite;
  color: #95f0ff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  font-size: 0.98rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-content {
  display: none;
  position: relative;
  z-index: 1;
}

.page-layout {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.hero__promo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.96) 100%);
  border: 2px solid rgba(239, 68, 68, 0.25);
  border-radius: 28px;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(16, 42, 67, 0.12), inset 0 0 30px rgba(255, 99, 99, 0.06);
  position: relative;
  overflow: hidden;
}

.hero__promo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: floatGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.1); }
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  color: #991b1b;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hero__promo h1 {
  font-size: clamp(2rem, 2.85vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { text-shadow: none; filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
  50% { filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.25)); }
}

.hero__promo p {
  font-size: 1.05rem;
  color: #1f2937;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.hero__cards {
  display: grid;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 68, 68, 0.04) 100%);
  border-radius: 24px;
  padding: 1.75rem;
  border: 1.5px solid rgba(239, 68, 68, 0.2);
  position: relative;
  z-index: 1;
}

.feature-card h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.feature-card li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
}

.feature-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.hero__form-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-card__logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-card__logo img {
  width: 120px;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(16, 42, 67, 0.16));
}

.form-card__header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  line-height: 1.05;
}

.form-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.96) 0%, rgba(220, 38, 38, 0.96) 100%);
  color: #fff;
  font-weight: 800;
  border: 2px solid #ff1744;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.38), inset 0 0 15px rgba(255, 255, 255, 0.12);
  animation: alertPulse 2s ease-in-out infinite;
}

.alert-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.alert-store-reminder {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.95;
  display: block;
}

.alert-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fca5a5;
  box-shadow: 0 0 12px #ff1744;
  animation: dotBlink 1.5s ease-in-out infinite;
}

.form-quick-note {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.96) 0%, rgba(16, 185, 129, 0.96) 100%);
  color: #fff;
  font-weight: 800;
  border: 2px solid #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.38), inset 0 0 15px rgba(255, 255, 255, 0.12);
  animation: successPulse 2.2s ease-in-out infinite;
}

#successMessage {
  display: none;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  transform-origin: center;
  will-change: transform, opacity;
  z-index: 5;
}

#successMessage.show {
  display: block;
  animation: successPop 480ms cubic-bezier(.2,.9,.3,1) both;
}

@keyframes successPop {
  0% { transform: translateY(8px) scale(0.98); opacity: 0; }
  60% { transform: translateY(-6px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.38), inset 0 0 15px rgba(255, 255, 255, 0.12); }
  50% { box-shadow: 0 0 40px rgba(255, 29, 29, 0.58), inset 0 0 20px rgba(255, 255, 255, 0.22); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px #ff1744; }
  50% { opacity: 0.4; box-shadow: 0 0 4px #ff1744; }
}

@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.38), inset 0 0 15px rgba(255, 255, 255, 0.12); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.58), inset 0 0 20px rgba(255, 255, 255, 0.22); }
}

.promo-form {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 1.4rem;
  border-radius: 28px;
  background: rgba(9, 24, 58, 0.92);
  box-shadow: 0 0 55px rgba(9, 118, 255, 0.18);
}

.promo-form label {
  display: grid;
  gap: 0.55rem;
  font-weight: 600;
  color: #e2f5ff;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(10, 25, 58, 0.88);
}

.promo-form input,
.promo-form select {
  width: 100%;
  border: 1px solid rgba(15, 118, 255, 0.22);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 255, 0.08);
}

.promo-form input:focus,
.promo-form select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
}

.btn--primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 20px 42px rgba(14, 165, 233, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(14, 165, 233, 0.50);
  filter: saturate(1.1);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* success message is styled above; keep slideInSuccess keyframes for compatibility */

@keyframes slideInSuccess {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-section {
  margin-top: 3rem;
  padding: 2rem 0 0;
}

.gallery-header {
  display: inline-grid;
  gap: 0.45rem;
  padding: 1.25rem 1.5rem;
  border-radius: 24px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.04);
  max-width: min(860px, 100%);
  margin-bottom: 1.5rem;
}

.gallery-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  letter-spacing: -0.03em;
}

.gallery-header p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.95) 0%, rgba(225, 244, 255, 0.9) 100%);
  padding: 1.5rem 0;
  box-shadow: 0 20px 45px rgba(9, 118, 255, 0.12);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  animation: autoScroll 32s linear infinite;
  padding: 0 1.5rem;
}

.carousel-item {
  flex: 0 0 280px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(9, 118, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes autoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-280px * 7 - 1.5rem * 7)); }
}

.location-section {
  margin-top: 3rem;
  padding: 2.5rem 0 0;
}

.location-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: 0 25px 60px rgba(16, 42, 67, 0.08);
}

.location-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 2.4vw, 2.4rem);
}

.location-copy p {
  margin: 0 0 1.5rem;
  color: #334155;
  line-height: 1.75;
}

.location-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.location-list li {
  background: rgba(59, 130, 246, 0.06);
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  color: #1e293b;
}

.location-map {
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 320px;
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.22);
}

.site-footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-layout {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.5rem 0 2rem;
  }

  .topbar {
    padding: 0.8rem 0.75rem;
  }

  .hero__promo,
  .hero__form-card {
    padding: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
