/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 40%, #020617 100%);
  color: #ffffff;
  overflow-x: hidden;
  padding-top: 72px; /* espacio para navbar fija */
}

/* ========================= */
/*     PANTALLA DE CARGA     */
/* ========================= */

.app-loader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 1), #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.app-loader-inner {
  text-align: center;
  padding: 2rem 2.4rem;
  border-radius: 1.8rem;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.08), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(250, 204, 21, 0.85);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.9);
}

.app-loader-logo {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.app-loader-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.app-loader-text {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 1.1rem;
}

.app-loader-bar {
  width: 220px;
  max-width: 70vw;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  margin: 0 auto;
}

.app-loader-bar-fill {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #facc15, #22c55e);
  animation: loader-bar-move 1.2s ease-in-out infinite;
}

@keyframes loader-bar-move {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(120%);
  }
}

/* ========================= */
/*          NAVBAR           */
/* ========================= */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(248, 250, 252, 0.15);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

.logo {
  font-weight: 700;
  color: #f97316;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.logo span {
  font-weight: 800;
  color: #22c55e;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #22c55e, #facc15);
  transition: width 0.2s ease-out;
}

.nav-links a:hover {
  color: #facc15;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Botón hamburguesa (móvil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Estado abierto */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================= */
/*           NIEVE           */
/* ========================= */

.snow-container {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 5;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(248, 250, 252, 0.9);
  text-shadow: 0 0 6px rgba(248, 250, 252, 0.8);
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snow-fall {
  to {
    transform: translateY(110vh);
    opacity: 0;
  }
}

/* ========================= */
/*          HERO             */
/* ========================= */

.hero {
  min-height: calc(100vh - 72px);
  padding: clamp(2.5rem, 5vw, 4rem) 8vw;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.35), transparent 55%),
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.35), transparent 60%),
    radial-gradient(circle at bottom, #020617, #020617 65%);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

/* ---- IZQUIERDA: CÍRCULOS ---- */

.hero-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-wrapper {
  position: relative;
  width: min(520px, 90vw);
  aspect-ratio: 1 / 1;
}

/* CÍRCULO CENTRAL (Navidad dorado/rojo) */
.central-circle {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(250, 204, 21, 0.8),
    0 0 70px rgba(220, 38, 38, 0.7);
  background: radial-gradient(circle at top, #facc15, #b91c1c);
  z-index: 2;
}

.central-circle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ARO DE ÓRBITA (con brillo helado) */
.orbit-ring {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px dashed rgba(248, 250, 252, 0.55);
  animation: orbit-rotate 18s linear infinite;
  box-shadow:
    0 0 30px rgba(59, 130, 246, 0.4),
    0 0 60px rgba(15, 23, 42, 0.9);
}

@keyframes orbit-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* CÍRCULOS DE ÓRBITA (verde navideño) */
.orbit-circle {
  position: absolute;
  width: 32%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at top, #22c55e, #15803d);
  box-shadow:
    0 0 26px rgba(22, 163, 74, 0.9),
    0 0 48px rgba(22, 163, 74, 0.6);
}

.orbit-circle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orbit-top {
  top: -6%;
  left: 50%;
  transform: translate(-50%, 0);
}

.orbit-right {
  right: -6%;
  top: 50%;
  transform: translate(0, -50%);
}

.orbit-bottom {
  bottom: -6%;
  left: 50%;
  transform: translate(-50%, 0);
}

.orbit-left {
  left: -6%;
  top: 50%;
  transform: translate(0, -50%);
}

/* ---- DERECHA: TEXTO ---- */

.hero-right {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(24, 24, 27, 0.95));
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero-right h1 {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-right p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: #e5e7eb;
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.08em;
}

/* Botones */

.btn-primary {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.6), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-ghost {
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-weight: 500;
  cursor: pointer;
}

.btn-outline {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}

/* ========================= */
/*       SECCIONES BASE      */
/* ========================= */

.section {
  padding: 4rem 8vw;
  background: #020617;
}

.section-dark {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1) 0, #020617 60%);
}

.section-contrast {
  background:
    radial-gradient(circle at top, rgba(248, 113, 113, 0.16), transparent 55%),
    radial-gradient(circle at bottom, rgba(74, 222, 128, 0.12), transparent 55%),
    #020617;
  position: relative;
}

/* Header de sección */

.section-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #22c55e;
  margin-bottom: 0.4rem;
}

.section h2,
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #e5e7eb;
  font-size: 0.95rem;
}

/* ========================= */
/*       INFO RÁPIDA         */
/* ========================= */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  position: relative;
  z-index: 1;
}

.info-card {
  padding: 1.8rem 1.6rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 250, 252, 0.2);
  font-size: 0.95rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

.info-card li {
  margin-bottom: 0.25rem;
}

/* ========================= */
/*   CARDS / HIGHLIGHTS      */
/* ========================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
}

.highlight-card {
  padding: 1.7rem 1.4rem;
  border-radius: 1.6rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(127, 29, 29, 0.9));
  border: 1px solid rgba(248, 113, 113, 0.6);
  font-size: 0.95rem;
}

.highlight-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(107, 114, 128, 0.7);
  font-size: 0.75rem;
  margin-top: 0.7rem;
}

/* Tarjetas flotantes */

.floating-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.9);
  border-color: rgba(250, 204, 21, 0.8);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ========================= */
/*     TIENDAS / ALIADOS     */
/* ========================= */

.shops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1rem;
}

.shop-card {
  position: relative;
  padding: 1.7rem 1.4rem 1.4rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(248, 250, 252, 0.08), transparent 55%),
    linear-gradient(135deg, rgba(153, 27, 27, 0.95), rgba(22, 101, 52, 0.96));
  border: 1px solid rgba(250, 204, 21, 0.8);
  font-size: 0.93rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.95),
    0 0 28px rgba(250, 204, 21, 0.25);
}

/* Cinta navideña */
.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #f97316, #facc15);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0.9;
}

/* Logo circular con imagen */
.shop-logo {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.7);
  overflow: hidden;
  background: radial-gradient(circle at top, #facc15, #b91c1c);
  box-shadow: 0 0 16px rgba(248, 250, 252, 0.5);
  margin-bottom: 0.5rem;
}

.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Encabezado de la tienda */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.shop-header h3 {
  font-size: 1.05rem;
}

.shop-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: rgba(15, 23, 42, 0.7);
}

.shop-description {
  color: #f9fafb;
}

/* Botón/link a Instagram */
.shop-link {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  align-self: flex-start;
  text-decoration: none;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  color: #111827;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-weight: 600;
}

.shop-link:hover {
  filter: brightness(1.05);
}

/* ========================= */
/*           FAQ             */
/* ========================= */

.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: none;
  color: #e5e7eb;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
}

.faq-icon {
  margin-left: 0.8rem;
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  font-size: 0.9rem;
  transition: max-height 0.2s ease-out, padding-bottom 0.2s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 0.9rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ========================= */
/*         CONTACTO          */
/* ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.contact-info {
  padding: 1.8rem 1.5rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.18), rgba(15, 23, 42, 1));
  border: 1px solid rgba(250, 204, 21, 0.7);
  font-size: 0.95rem;
}

.contact-info ul {
  list-style: none;
  margin-top: 0.7rem;
}

.contact-info li {
  margin-bottom: 0.45rem;
}

/* ========================= */
/*          POPUP            */
/* ========================= */

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(0, 0, 0, 0.92));
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  z-index: 1100;
}

.popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.popup-modal {
  width: min(420px, 90vw);
  border-radius: 1.7rem;
  padding: 1.8rem 1.6rem 1.5rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(39, 39, 42, 0.98));
  border: 1px solid rgba(250, 204, 21, 0.9);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.popup-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fbbf24;
  margin-bottom: 0.3rem;
}

.popup-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.popup-text {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 1.1rem;
}

.popup-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

/* ========================= */
/*          FOOTER           */
/* ========================= */

.footer {
  padding: 2rem 8vw;
  text-align: center;
  background: #000000;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* ========================= */
/* ANIMACIÓN REVEAL SCROLL   */
/* ========================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/*      RESPONSIVE MOBILE    */
/* ========================= */

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 4vw;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1rem 6vw 1.3rem;
    gap: 0.8rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    margin-top: 2rem;
    justify-self: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .orbit-wrapper {
    width: 80vw;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .shops-grid {
    grid-template-columns: 1fr;
  }

  .popup-actions {
    flex-direction: column;
    justify-content: stretch;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 68px;
  }

  .hero {
    padding-inline: 6vw;
  }

  .section {
    padding-inline: 6vw;
  }

  .hero-cta-group {
    flex-direction: column;
  }
}
