/* ==========================================================================
   CROCHET NAVIDEÑO - CSS ESTILOS DE PRODUCCIÓN (REDESIGN MOBILE COMPACTO)
   Inspirado en la densidad, proporciones y ritmo visual de mapa.fluentecomlegenda.com
   ========================================================================== */

/* 1. RESET Y VARIABLES DE DISEÑO */
:root {
  --pine-deep: #183B32;
  --pine: #285347;
  --berry: #A52F3D;
  --berry-hover: #8E2532;
  --wine: #782936;
  --cream-light: #FFF9F0;
  --cream: #F9F5EC;
  --beige: #F3EBDD;
  --beige-dark: #E7DCC8;
  --gold: #C8A36A;
  --gold-light: #DEC192;
  --ink: #242824;
  --ink-muted: #5A605A;
  --white: #FFFFFF;

  --mobile-inline-padding: 18px;
  --mobile-section-space: 38px;
  --mobile-card-padding: 15px;
  --mobile-card-radius: 14px;
  --mobile-item-gap: 12px;
  --mobile-button-height: 50px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--cream-light);
}

body {
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(200, 163, 106, 0.3);
  color: var(--pine-deep);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  text-align: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 2. TIPOGRAFÍA Y ESCALAS RESPONSIVAS */
h1, h2, h3, h4, .font-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: inherit;
}

h1 {
  font-size: clamp(27px, 7.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(22px, 5.8vw, 29px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(17px, 4.2vw, 21px);
  line-height: 1.28;
}

h4 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

p {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.52;
}

.text-ink { color: var(--ink); }
.text-ink-muted { color: var(--ink-muted); }
.text-cream-light { color: var(--cream-light); }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-berry { color: var(--berry); }
.text-pine { color: var(--pine); }

/* 3. LAYOUT Y CONTENEDORES */
.page-container {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  padding-inline: var(--mobile-inline-padding);
}

.section-compact {
  padding-block: var(--mobile-section-space);
}

@media (min-width: 768px) {
  .section-compact {
    padding-block: 54px;
  }
  .page-container {
    padding-inline: 28px;
  }
}

.bg-pine-deep { background-color: var(--pine-deep); }
.bg-cream-light { background-color: var(--cream-light); }
.bg-cream { background-color: var(--cream); }
.bg-beige { background-color: var(--beige); }
.bg-white { background-color: var(--white); }

/* 4. BOTONES Y LLAMADAS A LA ACCIÓN */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--mobile-button-height);
  padding: 12px 24px;
  background-color: var(--berry);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(165, 47, 61, 0.28);
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--berry-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(165, 47, 61, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1.5px solid var(--pine);
  color: var(--pine);
  background-color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  background-color: var(--pine);
  color: var(--white);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--pine-deep);
  box-shadow: 0 4px 14px rgba(200, 163, 106, 0.3);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-1px);
}

/* 5. HERO COMPACTO */
.hero-wrapper {
  background: radial-gradient(circle at 50% 20%, #204b40 0%, #183B32 80%);
  color: var(--cream-light);
  padding-top: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(200, 163, 106, 0.2);
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: rgba(255, 249, 240, 0.1);
  border: 1px solid rgba(200, 163, 106, 0.35);
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-image-box {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(200, 163, 106, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background-color: #0e241f;
  position: relative;
}

.hero-image-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-badge-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 5px 10px;
  background-color: rgba(24, 59, 50, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  border: 1px solid rgba(200, 163, 106, 0.3);
  font-size: 11.5px;
  color: var(--cream-light);
  text-align: center;
  font-weight: 600;
}

/* 6. GALERÍA DE MODELOS (2 COLUMNAS EN MÓVIL) */
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.model-card {
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(24, 59, 50, 0.08);
}

.model-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--beige);
}

.model-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.model-badge {
  font-size: 11px;
  color: var(--pine);
  font-weight: 600;
}

/* 7. BENEFICIOS COMPACTOS (2x2 EN MÓVIL) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.benefit-card {
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(40, 83, 71, 0.1);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.benefit-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* 8. PESTAÑAS INTERACTIVAS DE COLECCIÓN */
.tab-nav {
  display: flex;
  background-color: var(--beige);
  padding: 4px;
  border-radius: 12px;
  max-width: 420px;
  margin-inline: auto;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
  transition: all 0.18s ease;
  text-align: center;
}

.tab-btn.active-tab {
  background-color: var(--pine-deep);
  color: var(--cream-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.collection-box {
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 14px;
  padding: 16px;
  max-width: 580px;
  margin-inline: auto;
  margin-top: 14px;
}

/* 9. BÔNUS HORIZONTAIS COMPACTOS */
.bonuses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .bonuses-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.bonus-card-horizontal {
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 86px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.bonus-card-horizontal:hover {
  border-color: var(--gold);
  transform: translateX(2px);
}

.bonus-thumb {
  width: 95px;
  min-width: 95px;
  height: 100%;
  object-fit: cover;
  background-color: var(--beige);
}

.bonus-content {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  gap: 2px;
}

.bonus-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--berry);
}

.bonus-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bonus-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 10. PRECIOS Y PLANES (#planos) */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
  margin-inline: auto;
}

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

.pricing-card {
  flex: 1;
  background-color: var(--white);
  border: 1.5px solid var(--beige-dark);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card-featured {
  background-color: var(--pine-deep);
  color: var(--cream-light);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(24, 59, 50, 0.25);
}

.pricing-card-featured p {
  color: rgba(255, 249, 240, 0.85);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  color: var(--pine-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-block: 8px 12px;
}

.price-currency {
  font-size: 18px;
  font-weight: 700;
}

.price-amount {
  font-size: clamp(34px, 8vw, 42px);
  font-weight: 900;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.price-period {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

.pricing-card-featured .price-period {
  color: rgba(255, 249, 240, 0.7);
}

.feature-list {
  list-style: none;
  margin-block: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.38;
}

.feature-icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* 11. GARANTÍA Y ENTREGA ENXUTAS */
.guarantee-box {
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 600px;
  margin-inline: auto;
}

.guarantee-shield {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(200, 163, 106, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delivery-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .delivery-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-num {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.step-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* 12. FAQ ACORDEÓN ENXUTO */
.faq-container {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--beige-dark);
}

.faq-item {
  border-bottom: 1px solid var(--beige-dark);
}

.faq-toggle {
  width: 100%;
  padding: 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: color 0.18s ease;
}

.faq-toggle:hover {
  color: var(--berry);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  transition: transform 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}

.faq-chevron.rotate-180 {
  transform: rotate(180deg);
}

.faq-content {
  padding-bottom: 14px;
  padding-inline: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.faq-content.hidden {
  display: none;
}

/* 13. STICKY MOBILE CTA */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(24, 59, 50, 0.96);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-top: 1px solid rgba(200, 163, 106, 0.3);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.sticky-mobile-bar.flex {
  display: flex;
}

@media (min-width: 768px) {
  .sticky-mobile-bar {
    display: none !important;
  }
}

/* 14. MODALES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(14, 36, 31, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.flex {
  display: flex;
}

.modal-card-box {
  background-color: var(--white);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--beige-dark);
}

/* 15. UTILIDADES AUXILIARES */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.hidden { display: none !important; }
.block { display: block !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
