/* ───── NAV ───── */
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0.4rem 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 500px) {
  .nav-logo img {
    height: 40px;
  }
}

.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem;
  transition: color 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-nav {
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn-nav:hover {
  background: #b8722a;
  transform: scale(1.02);
  box-shadow: 0 4px 12px var(--shadow);
}

/* ───── HERO ───── */
.hero-badge {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--accent-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.2rem;
  max-width: 900px;
  margin-inline: auto;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(44, 31, 20, 0.7);
  max-width: 640px;
  margin-inline: auto;
}

.scroll-hint {
  margin-top: 3rem;
  font-size: 1.6rem;
  color: var(--accent);
  animation: bounce 2s infinite;
}

/* ───── SECTION TITLES ───── */
.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.section-title em {
  color: var(--accent);
  font-style: italic;
}

.section-title-script {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* ───── FORM PERSONALIZACIÓN ───── */
.form-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(44, 31, 20, 0.75);
  margin-top: 0.5rem;
}

.btn-genero {
  flex: 1;
  position: relative;
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.6rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--surface);
  color: rgba(44, 31, 20, 0.5);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-genero::before {
  content: "♡";
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(44, 31, 20, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn-genero:hover {
  border-color: var(--accent);
  color: var(--text);
}
.btn-genero:hover::before {
  color: var(--accent);
}

.btn-genero.active {
  background: #fff3e0;
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(200, 129, 58, 0.25);
}

.btn-genero.active::before {
  content: "♥";
  color: var(--accent);
  transform: scale(1.2);
}

#nombre-input,
#nombre-input-cta {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  background: var(--surface);
  outline: none;
  transition: border-color 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

#nombre-input:focus,
#nombre-input-cta:focus {
  border-color: var(--accent);
}

#nombre-input.field-error,
#nombre-input-cta.field-error {
  border-color: #c0392b;
  animation: shake 0.4s;
}

.campo-nota {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: rgba(44, 31, 20, 0.6);
}

/* ───── OVERLAY DE PAGO (MercadoPago Wallet Brick) ───── */
#pago-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 31, 20, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding: 1rem;
}

#pago-overlay.visible {
  opacity: 1;
}

.pago-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 1.6rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px var(--shadow);
  transform: translateY(8px);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

#pago-overlay.visible .pago-card {
  transform: translateY(0);
}

.pago-cerrar {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 1.2rem;
  color: rgba(44, 31, 20, 0.5);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.pago-cerrar:hover {
  color: var(--text);
  background: var(--accent-light);
}

.pago-title {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.pago-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: rgba(44, 31, 20, 0.7);
  margin-bottom: 1.2rem;
}

.pago-sub strong {
  color: var(--accent);
}

.pago-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 1rem auto;
  animation: pago-spin 0.9s linear infinite;
}

@keyframes pago-spin {
  to { transform: rotate(360deg); }
}

#wallet-container {
  margin: 1rem auto 0.6rem;
  min-height: 48px;
}

.pago-help {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: rgba(44, 31, 20, 0.55);
  margin-top: 1rem;
}

.pago-whatsapp-fallback {
  display: inline-block;
  background: var(--whatsapp);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.pago-whatsapp-fallback:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.02);
}

/* ───── PÁGINAS DE RETORNO DE PAGO (gracias/pendiente/error) ───── */
.retorno-pago {
  padding-top: calc(72px + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.retorno-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.retorno-icon.icon-success { color: var(--sage); }
.retorno-icon.icon-pending { color: var(--accent); }
.retorno-icon.icon-error { color: #c0392b; }

.retorno-h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.retorno-h1 em {
  color: var(--accent);
  font-style: italic;
}

.retorno-sub {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(44, 31, 20, 0.7);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.retorno-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 24px var(--shadow);
  max-width: 540px;
  margin: 0 auto 2rem;
  text-align: left;
  border-top: 4px solid var(--accent);
}

.retorno-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.retorno-card .btn-download {
  width: 100%;
  background: var(--sage);
  color: white;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.retorno-card .btn-download:hover {
  background: #6aa392;
  transform: scale(1.01);
}

.retorno-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.retorno-actions .btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--accent-light);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.retorno-actions .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.retorno-actions .btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.retorno-actions .btn-primary:hover {
  background: #b8722a;
  transform: scale(1.02);
}

/* ───── PÁGINAS LEGALES ───── */
.legal-page {
  padding-top: calc(72px + clamp(2rem, 4vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.legal-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--accent-light);
}

.legal-h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.legal-h1 em {
  color: var(--accent);
  font-style: italic;
}

.legal-meta {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: rgba(44, 31, 20, 0.6);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.legal-h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.legal-content p {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(44, 31, 20, 0.85);
}

.legal-content p em {
  font-style: italic;
}

.legal-content strong {
  color: var(--text);
  font-weight: 700;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.legal-content a:hover {
  color: #b8722a;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 0;
}

.legal-list li {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(44, 31, 20, 0.85);
  position: relative;
  padding-left: 1.4rem;
}

.legal-list li::before {
  content: "✦";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.85rem;
}

.legal-list li strong {
  color: var(--text);
}

/* ───── FORMULARIO DE ENVÍO (modal) ───── */
.envio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}

.envio-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.envio-field-full {
  grid-column: 1 / -1;
}

.envio-field label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(44, 31, 20, 0.75);
}

.envio-field label .optional {
  color: rgba(44, 31, 20, 0.45);
  font-weight: 400;
  font-style: italic;
}

.envio-field input,
.envio-field select,
.envio-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.envio-field input:focus,
.envio-field select:focus,
.envio-field textarea:focus {
  border-color: var(--accent);
}

.envio-field input.field-error,
.envio-field select.field-error,
.envio-field textarea.field-error {
  border-color: #c0392b;
  animation: shake 0.4s;
}

.envio-field textarea {
  resize: vertical;
  min-height: 64px;
  font-family: 'Nunito', sans-serif;
}

.envio-field-error {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.2rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .envio-grid {
    grid-template-columns: 1fr;
  }
  .envio-field-full {
    grid-column: 1;
  }
}

/* ───── MODAL DE ENVÍO (paso 1 antes del pago) ───── */
.modal-envio {
  position: fixed;
  inset: 0;
  background: rgba(44, 31, 20, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-envio-fade 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes modal-envio-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-envio-box {
  background: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px var(--shadow);
  overflow: hidden;
}

.modal-envio-header {
  position: relative;
  background: var(--bg);
  padding: 1.2rem 1.5rem 0.9rem;
  border-bottom: 1px solid var(--accent-light);
  flex-shrink: 0;
}

.modal-envio-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 2rem;
}

.modal-envio-title h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.modal-envio-step {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: rgba(44, 31, 20, 0.55);
  white-space: nowrap;
}

.modal-envio-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  border-radius: 50%;
  color: rgba(44, 31, 20, 0.55);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.modal-envio-close:hover {
  color: var(--text);
  background: var(--accent-light);
}

.modal-envio-body {
  padding: 1.1rem 1.5rem 1.4rem;
  overflow-y: auto;
  flex: 1;
}

.modal-envio-summary {
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-envio-summary-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.modal-envio-summary-name {
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  color: var(--text);
}

.modal-envio-summary-name strong {
  color: var(--accent);
  font-weight: 700;
  font-style: italic;
}

.modal-envio-summary-meta {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: rgba(44, 31, 20, 0.7);
}

.modal-envio-section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 1rem 0 0.7rem;
  text-transform: uppercase;
}

.modal-envio-body .modal-envio-section-title:first-of-type {
  margin-top: 0;
}

.modal-envio-footer {
  background: var(--bg);
  padding: 0.95rem 1.5rem 1.2rem;
  border-top: 1px solid var(--accent-light);
  text-align: center;
  flex-shrink: 0;
}

.btn-envio-continuar {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 4px 16px rgba(200, 129, 58, 0.25);
}

.btn-envio-continuar:hover:not(:disabled) {
  background: #b8722a;
  transform: scale(1.01);
}

.btn-envio-continuar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-envio-help {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: rgba(44, 31, 20, 0.55);
  margin: 0.5rem 0 0;
}

/* Mobile: bottom sheet */
@media (max-width: 600px) {
  .modal-envio {
    align-items: flex-end;
    padding: 0;
  }
  .modal-envio-box {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* ───── ALERTA INLINE DEL FORM ───── */
.form-alert {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-alert.visible {
  opacity: 1;
  transform: translateY(0);
  animation: shake 0.4s;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  align-self: flex-start;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn-primary:hover {
  background: #b8722a;
  transform: scale(1.02);
  box-shadow: 0 4px 16px var(--shadow);
}

#cover-canvas {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow);
  aspect-ratio: 400 / 565;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
}

.canvas-nota {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: rgba(44, 31, 20, 0.65);
  text-align: center;
}

.canvas-disclaimer {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: rgba(44, 31, 20, 0.5);
  text-align: center;
}

/* ───── CARDS (steps, books, testimonios) ───── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: 0 2px 16px var(--shadow);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card:hover {
  border-color: var(--accent-light);
  transform: scale(1.02);
  box-shadow: 0 8px 28px var(--shadow);
}

.card-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.card-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(44, 31, 20, 0.75);
}

/* ───── MOCKUP HOJA INTERIOR ───── */
.mockup-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.interior-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px var(--shadow), 0 2px 8px rgba(44, 31, 20, 0.08);
  background: var(--surface);
  aspect-ratio: 600 / 776;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.mockup-wrap:hover .interior-img {
  transform: scale(1.02);
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.split-text {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  color: rgba(44, 31, 20, 0.85);
}

/* ───── INCLUDE BLOCKS ───── */
.include-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 16px var(--shadow);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.include-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.include-h3 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.include-list {
  margin-top: 0.5rem;
}

.include-list li {
  padding: 0.3rem 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.include-list li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ───── BADGES ───── */
.badge {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
}

.badge-amber {
  background: #fff3e0;
  color: var(--accent);
  border: 1px solid var(--accent-light);
}

.badge-sage {
  background: #e8f5f2;
  color: #4a9980;
  border: 1px solid #c8e6de;
}

/* ───── TESTIMONIOS ───── */
.testi {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 2px 16px var(--shadow);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.testi:hover {
  border-color: var(--accent-light);
  transform: scale(1.02);
  box-shadow: 0 8px 28px var(--shadow);
}

.testi-quote {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testi-quote::before {
  content: '"';
  color: var(--accent);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.2rem;
}

.testi-autor {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.testi-meta {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: rgba(44, 31, 20, 0.6);
}

/* ───── PRICING ───── */
.pricing-card {
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 40px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.pricing-card .badge {
  margin-bottom: 1rem;
  align-self: center;
}

.precio {
  font-family: 'Lora', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  display: block;
}

.cuotas {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: rgba(44, 31, 20, 0.65);
  display: block;
  margin-bottom: 1.5rem;
}

.pricing-list {
  text-align: left;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.pricing-list li {
  padding: 0.4rem 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.6rem;
}

.pricing-list li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.btn-pagar {
  width: 100%;
  background: var(--accent);
  color: white;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 4px 16px var(--shadow);
}

.btn-pagar:hover {
  background: #b8722a;
  transform: scale(1.01);
  box-shadow: 0 6px 24px var(--shadow);
}

.pago-nota {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: rgba(44, 31, 20, 0.55);
  margin-top: 0.8rem;
}

/* ───── FAQ ───── */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--accent-light);
  padding: 0.2rem 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  color: var(--text);
}

.faq-icon {
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(44, 31, 20, 0.75);
  padding-bottom: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  padding-bottom: 1rem;
}

/* ───── CTA FINAL ───── */
.cta-final-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.cta-final-title em {
  color: var(--accent);
  font-style: italic;
}

.cta-final .btn-genero {
  background: var(--bg);
}

.cta-final #nombre-input-cta {
  background: var(--bg);
}

/* ───── FOOTER ───── */
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: rgba(44, 31, 20, 0.6);
}

.footer-h {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: rgba(44, 31, 20, 0.7);
  transition: color 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

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

/* ───── SCROLL PROGRESS ───── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 101;
  transition: width 0.05s linear;
}

/* ───── TOAST ───── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 24px var(--shadow);
}

#toast.visible {
  opacity: 1;
}

/* ───── MODAL ───── */
#modal-success {
  position: fixed;
  inset: 0;
  background: rgba(44, 31, 20, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding: 1rem;
}

#modal-success.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px var(--shadow);
}

.modal-box h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

#modal-nombre {
  color: var(--accent);
  font-style: italic;
}

.upload-status {
  margin-bottom: 1.5rem;
}

.upload-status div {
  padding: 0.6rem 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--accent-light);
}

.status-done {
  color: var(--sage);
  font-weight: 600;
}

.status-error {
  color: #c0392b;
}

.digital-downloads h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  margin: 1.2rem 0 0.8rem;
}

.btn-download {
  width: 100%;
  background: var(--sage);
  color: white;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.5rem;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn-download:hover:not(:disabled) {
  background: #6aa392;
  transform: scale(1.01);
}

.btn-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.envio-nota {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: rgba(44, 31, 20, 0.65);
  margin-top: 1.5rem;
  text-align: center;
}

#modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.3rem;
  color: rgba(44, 31, 20, 0.5);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

#modal-close:hover {
  color: var(--text);
  background: var(--accent-light);
}

/* ───── WHATSAPP ───── */
#whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  animation: whatsapp-pulse 2.5s infinite;
}

#whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 4px 12px var(--shadow);
}

#whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

@media (max-width: 500px) {
  #whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 16px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .modal-box {
    padding: 1.8rem 1.2rem;
  }
}
