/**
 * Template detail landing page
 * templates/template_detail.html.twig
 *
 * Inspirada en el diseño editorial premium de Apple/Stripe/Linear adaptado a
 * la paleta romántica de SetMyDay (beige, rosa, taupe).
 */

:root {
  --tpl-bg:           #f9f6f4;
  --tpl-bg-soft:      #fdf6f3;
  --tpl-bg-pink:      #fbeef0;
  --tpl-ink:          #2c2c2c;
  --tpl-ink-soft:     #5a4a50;
  --tpl-ink-muted:    #9a8a90;
  --tpl-primary:      #d37c8a;
  --tpl-primary-dark: #b85f6e;
  --tpl-accent:       #a8606e;
  --tpl-border:       #ead7d9;
  --tpl-shadow:       0 8px 28px rgba(74, 53, 32, 0.08);
  --tpl-font-serif:   'Playfair Display', Georgia, serif;
  --tpl-font-sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tpl-detail {
  font-family: var(--tpl-font-sans);
  background: var(--tpl-bg);
  color: var(--tpl-ink);
  line-height: 1.55;
}

/* ─── Botones ─── */
.tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.tpl-btn--primary {
  background: var(--tpl-primary);
  color: #fff;
  border: 2px solid var(--tpl-primary);
}
.tpl-btn--primary:hover {
  background: var(--tpl-primary-dark);
  border-color: var(--tpl-primary-dark);
  box-shadow: 0 6px 18px rgba(211, 124, 138, 0.35);
}
.tpl-btn--secondary {
  background: transparent;
  color: var(--tpl-primary);
  border: 2px solid var(--tpl-primary);
}
.tpl-btn--secondary:hover {
  background: var(--tpl-primary);
  color: #fff;
}

/* ─── Títulos de sección ─── */
.tpl-section-title {
  font-family: var(--tpl-font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.6rem;
  color: var(--tpl-ink);
  line-height: 1.25;
}
.tpl-section-title em {
  color: var(--tpl-primary);
  font-style: italic;
  font-weight: 500;
}
.tpl-section-sub {
  text-align: center;
  font-size: 0.98rem;
  color: var(--tpl-ink-soft);
  margin: 0 auto 2.5rem;
  max-width: 55ch;
  line-height: 1.6;
}

/* ═══════════════════════ HERO ═══════════════════════ */
.tpl-hero {
  position: relative;
  background-color: var(--tpl-bg);
  background-size: cover;
  background-position: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
.tpl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253, 246, 243, 0.92) 0%, rgba(253, 246, 243, 0.55) 50%, rgba(253, 246, 243, 0) 100%);
  z-index: 1;
}
.tpl-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.tpl-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tpl-hero__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tpl-primary);
}
.tpl-hero__title {
  font-family: var(--tpl-font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--tpl-ink);
}
.tpl-hero__sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--tpl-ink-soft);
  max-width: 38ch;
  line-height: 1.6;
}
.tpl-hero__ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
/* Badge "Best seller" — sutil, acorde a la paleta coral del resto */
.tpl-hero__bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(211, 124, 138, 0.10);
  color: var(--tpl-primary);
  border: 1px solid rgba(211, 124, 138, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  align-self: flex-start;
}
.tpl-hero__bestseller-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tpl-hero__bestseller-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--tpl-primary);
}
.tpl-hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tpl-hero__phone-media {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 38px;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.22),
    0 0 0 8px #1a1a1a,
    0 0 0 9px #2c2c2c;
  background: #1a1a1a;
}

/* ═══════════════════════ FEATURES ═══════════════════════ */
.tpl-features {
  background: var(--tpl-bg);
  padding: 4rem 1.5rem;
}
.tpl-features__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.tpl-features__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}
.tpl-feature {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1rem;
  text-align: center;
  border: 1px solid var(--tpl-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tpl-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--tpl-shadow);
}
.tpl-feature__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--tpl-primary);
}
.tpl-feature__icon svg {
  width: 100%;
  height: 100%;
}
.tpl-feature__label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tpl-ink);
  line-height: 1.3;
}

/* ═══════════════════════ CUSTOM ═══════════════════════ */
.tpl-custom {
  background: var(--tpl-bg-soft);
  padding: 4rem 1.5rem;
}
.tpl-custom__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.tpl-custom__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.tpl-custom__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.tpl-custom__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--tpl-ink);
}
.tpl-custom__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(211, 124, 138, 0.12);
  color: var(--tpl-primary);
  flex-shrink: 0;
}
.tpl-custom__check svg {
  width: 16px;
  height: 16px;
}
.tpl-custom__variants {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.tpl-variant {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  box-shadow: var(--tpl-shadow);
  background-size: cover;
  background-position: center;
}
.tpl-variant--1 { background: linear-gradient(135deg, #f8e0d4, #d8a99a); }
.tpl-variant--2 { background: linear-gradient(135deg, #f0e3d4, #c6a87f); }
.tpl-variant--3 { background: linear-gradient(135deg, #4a5a3e, #2a3826); }
.tpl-variant--4 { background: linear-gradient(135deg, #c8d4d6, #6b7e7e); }
.tpl-variant--5 { background: linear-gradient(135deg, #3a2a2a, #1a0f0f); }

/* ═══════════════════════ ASÍ DE FÁCIL — 3 pasos ═══════════════════════ */
.tpl-how {
  background: var(--tpl-bg);
  padding: 4rem 1.5rem;
}
.tpl-how__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.tpl-how__kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tpl-primary);
}
.tpl-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.tpl-how__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.tpl-how__step-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--tpl-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(211, 124, 138, 0.3);
}
.tpl-how__step-icon {
  color: var(--tpl-primary);
  margin-bottom: 1rem;
  width: 36px;
  height: 36px;
}
.tpl-how__step-icon svg {
  width: 100%;
  height: 100%;
}
.tpl-how__step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tpl-ink);
  margin: 0 0 0.5rem;
}
.tpl-how__step-desc {
  font-size: 0.9rem;
  color: var(--tpl-ink-soft);
  line-height: 1.5;
  margin: 0;
  max-width: 28ch;
}

/* ═══════════════════════ OPTIONS DIY vs PREMIUM ═══════════════════════ */
.tpl-options {
  background: var(--tpl-bg);
  padding: 4rem 1.5rem;
}
.tpl-options__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.tpl-options__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.tpl-option {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid var(--tpl-border);
  text-align: left;
}
.tpl-option__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--tpl-primary);
}
.tpl-option__icon svg {
  width: 100%;
  height: 100%;
}
.tpl-option__title {
  font-family: var(--tpl-font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--tpl-ink);
}
.tpl-option__desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--tpl-ink-soft);
  line-height: 1.55;
}
.tpl-option__link {
  display: inline-block;
  color: var(--tpl-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
}
.tpl-option__link:hover {
  color: var(--tpl-primary-dark);
}

/* ═══════════════════════ CTA FINAL ═══════════════════════ */
.tpl-cta {
  background: #ffffff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.tpl-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.tpl-cta__heart {
  width: 28px;
  height: 28px;
  margin: 0 auto 1.25rem;
  color: var(--tpl-primary);
}
.tpl-cta__heart svg {
  width: 100%;
  height: 100%;
}
.tpl-cta__title {
  font-family: var(--tpl-font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--tpl-ink);
  line-height: 1.25;
}
.tpl-cta__sub {
  margin: 0 0 2rem;
  color: var(--tpl-ink-soft);
  font-size: 1rem;
}
.tpl-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tpl-cta__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--tpl-ink-soft);
}
.tpl-cta__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.tpl-cta__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(211, 124, 138, 0.10);
  color: var(--tpl-primary);
  flex-shrink: 0;
}
.tpl-cta__trust-icon svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════ MOBILE ═══════════════════════ */
@media (max-width: 768px) {
  .tpl-hero {
    padding: 6rem 1.25rem 3rem;
    background-image: var(--tpl-hero-bg-mobile) !important;
  }
  .tpl-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .tpl-hero__title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }
  .tpl-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .tpl-hero__phone-media {
    max-width: 260px;
    margin: 0 auto;
  }

  .tpl-features,
  .tpl-custom,
  .tpl-options,
  .tpl-cta {
    padding: 3rem 1.25rem;
  }

  .tpl-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tpl-feature {
    padding: 1rem 0.75rem;
  }
  .tpl-feature__icon {
    width: 32px;
    height: 32px;
  }
  .tpl-feature__label {
    font-size: 0.78rem;
  }

  .tpl-custom__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tpl-custom__variants {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .tpl-options__grid {
    grid-template-columns: 1fr;
  }
  .tpl-option {
    padding: 1.5rem;
  }

  .tpl-cta__buttons {
    flex-direction: column;
  }
  .tpl-cta__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    padding: 0 0.5rem;
    text-align: left;
    font-size: 0.8rem;
  }
  .tpl-cta__trust li {
    justify-self: start;
  }
  .tpl-cta__trust-icon {
    width: 26px;
    height: 26px;
  }
  .tpl-cta__trust-icon svg {
    width: 15px;
    height: 15px;
  }

  /* Así de fácil — 3 pasos en línea, descripciones ocultas en móvil */
  .tpl-how {
    padding: 3rem 1rem;
  }
  .tpl-how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
  .tpl-how__step-num {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .tpl-how__step-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 0.5rem;
  }
  .tpl-how__step-title {
    font-size: 0.82rem;
    line-height: 1.25;
  }
  .tpl-how__step-desc {
    display: none;
  }
}
