/* ============================================================
   LANDING · Nudo
   Paleta: blanco roto + dorado ceremonial + serif elegante
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #faf8f3;
  color: #2c2a26;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.2em;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: -0.2em;
  user-select: none;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}

p { margin: 0; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  border: 1px solid #b08d57;
  background: #b08d57;
  color: #fff;
  font: 500 .82rem 'Inter', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}

.btn:hover {
  background: #7a5c3a;
  border-color: #7a5c3a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(176, 141, 87, .6);
}

.btn--ghost {
  background: transparent;
  color: #b08d57;
  border-color: #b08d57;
}

.btn--ghost:hover {
  background: #b08d57;
  color: #fff;
}

.btn--small {
  padding: .65rem 1.25rem;
  font-size: .75rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 243, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(176, 141, 87, .15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
}

.site-header__script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.35rem, 5vw, 2rem);
  color: #b08d57;
  line-height: 1;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__nav > a:not(.btn) {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2c2a26;
  transition: color .2s ease;
}

.site-header__nav > a:not(.btn):hover {
  color: #b08d57;
}

@media (max-width: 720px) {
  .site-header__nav > a:not(.btn) {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 10rem 1rem 6rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 195, 154, .15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(176, 141, 87, .1) 0%, transparent 40%),
    #faf8f3;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, #b08d57, transparent);
}

.hero__inner {
  max-width: 800px;
}

.hero__eyebrow {
  font: 500 .78rem 'Inter', sans-serif;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: #b08d57;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #2c2a26;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero__title em {
  font-style: italic;
  color: #b08d57;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: #5c5549;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero {
    padding: 8rem 1rem 5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-head__eyebrow {
  font: 500 .72rem 'Inter', sans-serif;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: #b08d57;
  margin-bottom: 1rem;
}

.section-head__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #2c2a26;
  margin-bottom: 1rem;
}

.section-head__text {
  font-size: 1rem;
  color: #5c5549;
}

/* ============================================================
   PLANTILLAS
   ============================================================ */
.templates {
  padding: 6rem 1rem;
  background: #faf8f3;
}

.plan-group {
  margin-bottom: 5rem;
}

.plan-group:last-child {
  margin-bottom: 0;
}

.plan-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(176, 141, 87, .2);
  max-width: 1200px;
  margin-inline: auto;
  flex-wrap: wrap;
}

.plan-group__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: #2c2a26;
}

.plan-group__price {
  font-size: .9rem;
  color: #5c5549;
  letter-spacing: .05em;
}

.plan-group__price strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #b08d57;
  font-weight: 600;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .templates-grid {
    grid-template-columns: 1fr;
  }
}

.template-card {
  background: #fff;
  border: 1px solid rgba(176, 141, 87, .15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(44, 42, 38, .2);
  border-color: rgba(176, 141, 87, .4);
}

.template-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2efe8;
}

.template-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.template-card:hover .template-card__img img {
  transform: scale(1.05);
}

.template-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
}

.template-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: #2c2a26;
  margin-bottom: .35rem;
  font-style: italic;
}

.template-card__desc {
  font-size: .82rem;
  color: #7a6f60;
  margin-bottom: 1.25rem;
  letter-spacing: .03em;
}

.template-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border: 1px solid #b08d57;
  border-radius: 4px;
  font: 500 .74rem 'Inter', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #b08d57;
  transition: all .25s ease;
}

.template-card__btn:hover {
  background: #b08d57;
  color: #fff;
}

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.how {
  padding: 6rem 1rem;
  background: #f2efe8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.step {
  text-align: center;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #b08d57;
  background: #faf8f3;
  color: #b08d57;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.step__title {
  font-size: 1.35rem;
  color: #2c2a26;
  margin-bottom: .65rem;
}

.step__text {
  font-size: .95rem;
  color: #5c5549;
  line-height: 1.7;
  max-width: 32ch;
  margin: 0 auto;
}

/* ============================================================
   PLANES
   ============================================================ */
.plans {
  padding: 6rem 1rem;
  background: #faf8f3;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(176, 141, 87, .2);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(44, 42, 38, .15);
}

.plan-card--featured {
  border: 2px solid #b08d57;
  box-shadow: 0 20px 40px -15px rgba(176, 141, 87, .3);
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: .35rem 1rem;
  background: #b08d57;
  color: #fff;
  font: 600 .68rem 'Inter', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: #2c2a26;
  margin-bottom: .5rem;
}

.plan-card__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #b08d57;
  line-height: 1;
  margin-bottom: .35rem;
}

.plan-card__sub {
  font-size: .82rem;
  color: #7a6f60;
  letter-spacing: .03em;
  margin-bottom: 2rem;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  display: grid;
  gap: .85rem;
}

.plan-card__features li {
  position: relative;
  padding-left: 1.65rem;
  font-size: .9rem;
  color: #5c5549;
  line-height: 1.5;
}

.plan-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #b08d57;
  font-weight: 700;
  font-size: .95rem;
}

.plan-card__features li strong {
  color: #2c2a26;
  font-weight: 600;
}

.plan-card__btn {
  width: 100%;
}

/* ============================================================
   PREGUNTAS FRECUENTES
   ============================================================ */
.faq {
  padding: 5.5rem 1rem;
  background: #faf8f3;
}

.faq__inner {
  max-width: 780px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(176, 141, 87, 0.2);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(176, 141, 87, 0.48);
  box-shadow: 0 8px 24px -16px rgba(44, 42, 38, 0.16);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: #2c2a26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #b08d57;
  flex-shrink: 0;
}

.faq-item[open] .faq-item__q::after {
  content: '−';
}

.faq-item__a {
  margin-top: 0.75rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #5c5549;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  padding: 6rem 1rem;
  background: #f2efe8;
  text-align: center;
}

.contact__inner {
  max-width: 640px;
}

.contact__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #2c2a26;
  margin-bottom: .75rem;
  font-style: italic;
}

.contact__text {
  font-size: 1rem;
  color: #5c5549;
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 4rem 1rem 3rem;
  background: #2c2a26;
  color: #d4cbb8;
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

.site-footer__script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #d9c39a;
  line-height: 1;
}

.site-footer__tagline {
  margin-top: .5rem;
  font-size: .85rem;
  color: #a8a090;
  letter-spacing: .05em;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  font-size: .85rem;
  color: #d4cbb8;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.site-footer__links a:hover {
  color: #d9c39a;
  border-bottom-color: #d9c39a;
}

.site-footer__copy {
  font-size: .75rem;
  color: #7a6f60;
  letter-spacing: .05em;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 203, 184, .15);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   BOTONES DE LA CARD (Ver + Probar)
   ============================================================ */
.template-card__actions {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.template-card__btn {
  flex: 1;
  min-width: 90px;
}

.template-card__btn--ghost {
  background: transparent;
  color: #7a6f60;
  border-color: rgba(176, 141, 87, .35);
}

.template-card__btn--ghost:hover {
  background: #b08d57;
  color: #fff;
  border-color: #b08d57;
}

/* ============================================================
   MODAL DE PREVIEW
   ============================================================ */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  animation: fadeIn .25s ease;
}

.preview-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #2c2a26;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .8);
  display: flex;
  flex-direction: column;
  animation: slideUp .3s cubic-bezier(.2, .9, .3, 1.1);
}

.preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.15rem;
  background: rgba(250, 248, 243, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.preview-modal__title {
  font: 600 .82rem 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d9c39a;
}

.preview-modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #d4cbb8;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease;
}

.preview-modal__close:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.preview-modal__body {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: calc(90vh - 60px);
}

.preview-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-height: 800px) {
  .preview-modal__dialog {
    max-height: 95vh;
  }
  .preview-modal__body {
    max-height: calc(95vh - 60px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#previewFrame.is-loading {
  opacity: 0;
}
#previewFrame {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Fondo del modal mientras carga (por si el iframe tarda) */
#previewModal .preview-modal__body::before {
  content: 'Cargando vista previa…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a89f91;
  font: 14px/1 system-ui, sans-serif;
  z-index: 0;
}
/* ============================================================
   SWITCH DE TIPO DE EVENTO
   ============================================================ */
.type-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 48px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  width: fit-content;
}

.type-switch__btn {
  padding: 10px 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #666;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.type-switch__btn:hover {
  color: #000;
}

.type-switch__btn.is-active {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   TAGS & PLAN ÚNICO
   ============================================================ */
.template-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.template-card__tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  background: rgba(176, 141, 87, 0.08);
  border: 1px solid rgba(176, 141, 87, 0.22);
  border-radius: 999px;
  color: #7a6f60;
  letter-spacing: 0.02em;
}

.template-card__badge-plan {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: #f4ede1;
  color: #8b6d3b;
}

.template-card__badge-plan--unico {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-group__subtitle {
  font-size: 0.88rem;
  color: #7a6f60;
  margin-top: 0.25rem;
  font-weight: normal;
}

.plans-unico-wrap {
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .type-switch {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 4px;
  }
  .type-switch__btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}
