/*

- Archivo: styles.css
- Descripción: Estilos CSS puros para Candy Xmas. Mobile-First.
*/

/* 1. Variables de Diseño y Resets */
:root {
  /* Paleta de Colores (MX) */
  --color-white: #FFFFFF;
  --color-base: #F8F8F8; /* Blanco muy suave para fondo */
  --color-wine: #8B0014; /* Rojo vino (principal) */
  --color-candy: #D0142B; /* Rojo candy/brillante (acento) */
  --color-gold-soft: #CC9900; /* Dorado suave (acento) */
  --color-text-dark: #333333;

  /* Tipografía */
  --font-heading: 'Poppins', 'SF Pro Rounded', sans-serif;
  --font-body: 'Nunito', 'Inter', sans-serif;

  /* Espaciado / Border */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --border-radius-lg: 1.5rem; /* 2xl border */
}

/* Reset Básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  background-color: var(--color-base);
}

/* Base de Contenedor */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* Estilos de Tipografía */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-wine);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

/* Estilos Comunes de Sección */
.section {
  padding: var(--space-md) 0;
}

.padded-section {
  padding: var(--space-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--color-candy);
}

/* 2. Botones y CTA */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.large-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.full-width-btn {
  width: 100%;
  margin-top: 1rem;
}

.primary-btn {
  background-color: var(--color-candy);
  color: var(--color-white);
}

.primary-btn:hover {
  background-color: var(--color-wine);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
  background-color: var(--color-white);
  color: var(--color-wine);
  border: 2px solid var(--color-wine);
}

.secondary-btn:hover {
  background-color: var(--color-wine);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* 3. Header y Navegación */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  padding: 0.5rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: none;
}

.nav-links li a {
  color: var(--color-wine);
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
  transition: color 0.2s;
  border-radius: var(--border-radius-lg);
}

.nav-links li a:hover {
  color: var(--color-candy);
  background-color: rgba(208, 20, 43, 0.05);
}

.cta-nav-link {
  background-color: var(--color-candy);
  color: var(--color-white) !important;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
}

.cta-nav-link:hover {
  background-color: var(--color-wine);
}

/* Toggle del Menú (Mobile) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-wine);
  border-radius: 10px;
  transition: all 0.3s linear;
  transform-origin: 1px;
}

/* Menú Abierto */
#main-nav.active .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  padding: var(--space-sm) 0;
}

#main-nav.active .nav-links li {
  text-align: center;
  padding: 0.5rem 0;
}

/* Desktop Navigation */
@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    align-items: center;
  }
  #main-nav.active .nav-links {
    position: static;
    width: auto;
    box-shadow: none;
    background: none;
    flex-direction: row;
    padding: 0;
  }
}

/* 4. Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: -1;
}

.hero-content {
  z-index: 10;
  padding-top: 5rem;
}

.hero-title {
  font-size: 3rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  color: var(--color-white);
  font-weight: 700;
}

.hero-subtitle-location {
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 5rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Contador Regresivo (HERO) */
.countdown-wrapper {
  background-color: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--color-candy);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  margin: 2rem auto;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tag-preventa {
  color: var(--color-candy);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
}

.time-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
  background-color: var(--color-wine);
  border-radius: 0.75rem;
  color: var(--color-white);
}

.time-box span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.time-box small {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.countdown-chip {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
}

/* 5. Beneficios Section */
.intro-section {
  background: repeating-linear-gradient(
    45deg,
    var(--color-base),
    var(--color-base) 10px,
    rgba(208, 20, 43, 0.05) 10px,
    rgba(208, 20, 43, 0.05) 20px
  );
}

.intro-text {
  text-align: center;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 400;
  color: var(--color-text-dark);
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  background-color: var(--color-white);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  font-weight: 700;
  color: var(--color-wine);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .beneficios-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 6. Paquetes Section */
.packages-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .packages-grid {
    flex-direction: row;
  }
}

.package-card {
  flex: 1;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 3px solid transparent;
}

.featured-card {
  border-color: var(--color-candy);
}

.card-title {
  font-size: 1.75rem;
  color: var(--color-wine);
  margin-bottom: 0.5rem;
  text-align: center;
}

.price-box {
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.price-actual {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-candy);
  display: block;
}

.price-strikethrough {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
  display: block;
  margin-bottom: 0.5rem;
}

.micro-copy {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(139, 0, 20, 0.1);
  display: flex;
  align-items: center;
}

.features-list li:before {
  content: '★';
  color: var(--color-candy);
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* 7. Fechas y Pasos */
.dates-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (min-width: 600px) {
  .dates-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.date-item {
  text-align: center;
  background-color: var(--color-white);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.date-label {
  font-weight: 700;
  color: var(--color-candy);
  margin-bottom: 0.25rem;
}

.date-range, .date-details {
  color: var(--color-text-dark);
  font-size: 0.95rem;
}

.note-box {
  margin: var(--space-md) auto 0;
  padding: 1rem;
  background-color: rgba(139, 0, 20, 0.05);
  border-left: 5px solid var(--color-wine);
  border-radius: 0 0.5rem 0.5rem 0;
  max-width: 600px;
}

/* Pasos */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    flex-direction: row;
  }
}

.step-card {
  flex: 1;
  text-align: center;
  padding: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 3rem;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-gold-soft);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.step-card h3 {
  color: var(--color-candy);
  margin-bottom: 0.5rem;
}

.cta-bottom {
  text-align: center;
  margin-top: 2rem;
}

/* 8. Outfit Section */
.outfit-section {
  background-color: #f7eded;
}

.outfit-text {
  text-align: center;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.outfit-colors {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.color-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.color-chip:hover {
  transform: scale(1.1);
}

/* 9. Preview Section */
.preview-section {
  background-color: var(--color-base);
}

.preview-text {
  text-align: center;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-dark);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.preview-item img {
  width: 100%;
  display: block;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* 10. Políticas y FAQ Section */
.policies-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 3rem;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.policies-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
  color: var(--color-wine);
  font-weight: 600;
}

.policies-list li:last-child {
  border-bottom: none;
}

.faq-accordion {
  max-width: 700px;
  margin: 0 auto;
}

.faq-accordion details {
  background-color: var(--color-white);
  border: 1px solid #f0f0f0;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.faq-accordion summary {
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  outline: none;
  list-style: none;
  color: var(--color-wine);
  position: relative;
}

.faq-accordion summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
  font-size: 1.5rem;
}

.faq-accordion details[open] summary::after {
  content: '-';
  transform: translateY(-50%);
}

.accordion-content {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.cta-final {
  text-align: center;
  margin-top: var(--space-lg);
}

.final-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-wine);
}

/* 11. Ubicación Section */
.location-section {
  background-color: var(--color-white);
}

.location-text {
  text-align: center;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-dark);
}

.location-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .location-grid {
    flex-direction: row;
    align-items: stretch;
  }
}

.location-map {
  flex: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #ddd;
}

.location-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

@media (min-width: 768px) {
  .location-map iframe {
    height: 320px;
  }
}

.location-details {
  flex: 1;
  background-color: var(--color-base);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-address {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.location-note {
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.location-actions {
  text-align: center;
  margin-top: 2rem;
}

/* 12. Footer */
.footer {
  background-color: var(--color-wine);
  color: var(--color-white);
  padding-top: var(--space-md);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-col {
    flex: 1;
  }
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold-soft);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.25rem;
}

.footer a:hover {
  color: var(--color-candy);
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  background-color: rgba(0, 0, 0, 0.1);
}

/* 13. Botón Flotante y Volver Arriba */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25D366;
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  stroke: var(--color-white);
  fill: var(--color-white);
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  background-color: var(--color-wine);
  color: var(--color-white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .back-to-top {
    display: none !important;
  }
}

/* 14. Accesibilidad y Microinteracciones */
a:focus, button:focus, summary:focus {
  outline: 2px solid var(--color-gold-soft);
  outline-offset: 2px;
}
