/*
Theme Name: Tarot Melisa
Theme URI:
Author: Melisa
Description: Tema personalizado – Tarot del Toxi
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: tarot-melisa
*/

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

:root {
  --rojo:   #8B0000;
  --rojo2:  #6B0000;
  --oro:    #D4A843;
  --oro2:   #F0C96B;
  --crema:  #F5E6C8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--rojo);
  color: var(--crema);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 1rem; left: 1.5rem; right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(60, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212,168,67,0.08);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--oro);
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--crema);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--oro);
  color: var(--rojo2) !important;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--oro2) !important; color: var(--rojo2) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--oro); border-radius: 2px; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(100, 0, 0, 0.85) 40%, transparent 100%);
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.deco-left  { right: 20%; bottom: 0; height: 68%; opacity: 0.92; }
.deco-right { right: -10px; top: 70px; height: 64%; opacity: 0.88; }
.deco-mobile { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  width: 52%;
  padding: 4rem 2rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid var(--oro);
  color: var(--oro);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  width: fit-content;
}

.hero-badge::before { content: '✦'; }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--crema);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

h1 span { color: var(--oro); }

.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--oro2);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}

.btn-primary { background: #25D366; color: #fff; border-color: #25D366; }
.btn-primary:hover { background: #1da851; border-color: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.btn-secondary { background: transparent; color: var(--crema); border-color: var(--oro); }
.btn-secondary:hover { background: var(--oro); color: var(--rojo2); transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--oro);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 2;
}

.scroll-hint svg { animation: bounce 1.6s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── RESPONSIVE TABLET ── */
@media (max-width: 1024px) {
  .hero-content { width: 60%; padding: 4rem 2rem 5rem 3rem; }
  .deco-left { right: 10%; height: 60%; }
  .deco-right { right: -5px; height: 55%; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .moneda-trigger { min-width: 200px; }
}

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 768px) {
  nav { top: 0.75rem; left: 1rem; right: 1rem; padding: 0 1.25rem; height: 54px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 4.5rem; left: 1rem; right: 1rem;
    background: rgba(20,0,0,0.97);
    backdrop-filter: blur(14px);
    padding: 1.5rem 1.5rem;
    gap: 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(212,168,67,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-logo { font-size: 1.05rem; }

  #hero { min-height: 85svh; padding-top: 65px; align-items: flex-start; }
  .hero-bg { background-position: center top; }
  .hero-content { width: 100%; padding: 1.5rem 1.25rem 3rem; gap: 0.85rem; position: relative; z-index: 3; }
  .hero-badge { font-size: 0.7rem; letter-spacing: 1.5px; padding: 0.3rem 0.85rem; white-space: nowrap; }
  h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }
  .hero-sub { font-size: 0.88rem; letter-spacing: 0.5px; }
  .btn { font-size: 0.9rem; padding: 0.7rem 1.35rem; }
  .hero-btns { gap: 0.55rem; flex-wrap: nowrap; }
  .deco-left { display: none; }
  .deco-right { display: none; }
  .deco-mobile { display: block; position: absolute; right: 0; bottom: 0; height: 42%; opacity: 0.9; z-index: 1; }
  .btn-wa-hero { display: none; }
  .scroll-hint { bottom: 1rem; }

  #servicios { padding: 3rem 1rem 4rem; }
  .sec-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .sec-inner { gap: 1.5rem; }
  .moneda-wrap { padding: 0.5rem 0; gap: 1rem; }
  .moneda-trigger { min-width: 0; width: 100%; font-size: 0.88rem; padding: 0.6rem 1.1rem; }
  .moneda-dropdown-wrap { width: 90%; max-width: 320px; }
  .cat-filter { gap: 0.35rem; }
  .cat-btn { font-size: 0.82rem; padding: 0.5rem 1.1rem; }
  .cards-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .card-body { padding: 0.85rem 1rem; }

  .modal { padding: 1.5rem 1.25rem 1.25rem; max-width: 100%; width: calc(100vw - 2rem); max-height: 92vh; border-radius: 1.25rem; margin: 0 1rem; }
  .modal-title { font-size: 1.1rem; }
  .form-input { font-size: 0.9rem; padding: 0.6rem 0.8rem; }
  .file-label { font-size: 0.82rem; padding: 0.7rem 0.9rem; }
  .btn-wa-modal { font-size: 0.92rem; padding: 0.8rem; }

  #contacto { padding: 4rem 1.25rem; }
  footer { padding: 2rem 1.25rem; }
}

@media (max-width: 380px) {
  nav { left: 0.5rem; right: 0.5rem; }
  h1 { font-size: 1.9rem; }
  .btn { font-size: 0.88rem; padding: 0.7rem 1.2rem; }
  .moneda-trigger { font-size: 0.82rem; }
}

/* ══════════════════════════════════
   SECCIÓN SERVICIOS
══════════════════════════════════ */
#servicios {
  position: relative;
  padding: 6rem 1rem 7rem;
  overflow: hidden;
}

.sec-bg {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  z-index: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.sec-bg::after { display: none !important; }

.sec-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.8vw, 4rem);
  color: var(--oro);
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: none;
}

.sec-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--oro);
  margin: 0.9rem auto 0;
  opacity: 0.5;
  border-radius: 2px;
}

.moneda-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 0.5rem 0;
}

.moneda-label {
  font-size: 0.78rem;
  color: var(--oro);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.moneda-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.moneda-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1a0a00;
  border: 1.5px solid var(--oro);
  color: var(--oro);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  min-width: 240px;
  justify-content: space-between;
  transition: all 0.2s;
}
.moneda-trigger:hover { background: #2a1000; }
.moneda-trigger-left { display: flex; align-items: center; gap: 0.6rem; }
.moneda-arrow { font-size: 0.75rem; transition: transform 0.2s; }
.moneda-dropdown-wrap.open .moneda-arrow { transform: rotate(180deg); }

.moneda-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #1a0a00;
  border: 1.5px solid var(--oro);
  border-radius: 1rem;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.moneda-dropdown-wrap.open .moneda-menu { display: block !important; }

.moneda-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  color: var(--oro);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.moneda-option:hover { background: rgba(212,168,67,0.12); }
.moneda-option.active { background: rgba(212,168,67,0.18); }

.pais-flag { width: 24px; height: 17px; object-fit: cover; border-radius: 3px; display: block; }

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cat-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid rgba(139,0,0,0.25);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--rojo2);
  letter-spacing: 0.5px;
}
.cat-btn:hover { border-color: var(--oro); color: #7a3800; }
.cat-btn.active { background: var(--oro); border-color: var(--oro); color: var(--rojo2); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.service-card {
  background: #1a1a2e;
  border: 1px solid rgba(212,168,67,0.18);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(212,168,67,0.15);
}

.card-flyer {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.card-flyer-empty {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(140deg, #2a2a4a 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,168,67,0.2);
  font-size: 4rem;
}

.card-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #1a1a2e;
  flex: 1;
}

.card-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  color: rgba(245,230,200,0.75);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--oro);
  font-weight: 700;
  line-height: 1.3;
}

.price-value {
  font-family: 'Lato', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--crema);
  line-height: 1;
}

.price-currency {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--crema);
  opacity: 0.5;
  margin-top: 0.15rem;
}

.btn-reservar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--oro);
  color: var(--rojo2);
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.4px;
  margin-top: 0.25rem;
}
.btn-reservar:hover { background: var(--oro2); transform: translateY(-1px); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #180000;
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: 1.5rem;
  padding: 2rem 2rem 1.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,0.7);
}

.modal-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; color: var(--crema); font-size: 1.3rem; cursor: pointer; opacity: 0.45; transition: opacity 0.2s; line-height: 1; }
.modal-close:hover { opacity: 1; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--oro); margin-bottom: 0.2rem; padding-right: 2rem; }
.modal-sub { font-size: 0.82rem; color: var(--crema); opacity: 0.55; margin-bottom: 1.5rem; }

.pago-box { background: rgba(212,168,67,0.07); border: 1px solid rgba(212,168,67,0.25); border-radius: 0.9rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.pago-titulo { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--oro); font-weight: 700; margin-bottom: 0.6rem; }
.pago-linea { font-size: 0.85rem; color: var(--crema); opacity: 0.85; padding: 0.15rem 0; display: flex; align-items: center; gap: 0.5rem; }
.pago-linea::before { content: '✦'; color: var(--oro); font-size: 0.5rem; flex-shrink: 0; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }
.form-label { font-size: 0.7rem; color: var(--crema); opacity: 0.55; text-transform: uppercase; letter-spacing: 1.5px; }
.form-input { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(212,168,67,0.22); border-radius: 0.6rem; color: var(--crema); font-family: 'Playfair Display', serif; font-size: 0.95rem; padding: 0.65rem 0.9rem; outline: none; transition: border-color 0.2s; width: 100%; }
.form-input:focus { border-color: var(--oro); }
.form-input::placeholder { opacity: 0.35; }
.file-label { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.04); border: 1.5px dashed rgba(212,168,67,0.28); border-radius: 0.6rem; color: var(--crema); font-size: 0.88rem; opacity: 0.7; padding: 0.8rem 1rem; cursor: pointer; transition: all 0.2s; }
.file-label:hover { border-color: var(--oro); opacity: 1; }
.file-name { font-size: 0.78rem; color: var(--oro); margin-top: 0.3rem; }
.field-error { font-size: 0.75rem; color: #ff6b6b; margin-top: 0.3rem; display: none; }
.form-input.error { border-color: #ff6b6b; }
.file-label.error { border-color: #ff6b6b; }

.btn-wa-modal { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; background: #25D366; color: #fff; font-family: 'Lato', sans-serif; font-size: 1rem; font-weight: 700; padding: 0.88rem; border-radius: 999px; border: none; cursor: pointer; margin-top: 0.5rem; transition: background 0.2s; letter-spacing: 0.5px; }
.btn-wa-modal:hover { background: #1da851; }
