/* ============================================================
   SAKURA ATLAS — Diseño profesional claro
   Estética editorial premium: blanco washi, rojo torii en CTAs,
   dorado sobrio en acentos, tipografía serif elegante.
   ============================================================ */
:root {
  --torii: #C41E3A;
  --torii-dark: #A31830;
  --gold: #A6791F;
  --gold-soft: #C9A84C;
  --ink: #2B2430;            /* texto principal */
  --ink-soft: #6B6472;       /* texto secundario */
  --bg: #FDFBF7;             /* fondo base: blanco cálido */
  --bg-alt: #F7F2EA;         /* fondo alterno de secciones */
  --card: #FFFFFF;
  --line: #EAE3D8;           /* bordes sutiles */
  --sakura: #F6DCE4;         /* rosa sakura muy suave */
  --sakura-deep: #D98BA4;
  --matcha: #5F8A6D;
  --radius: 14px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-jp: 'Noto Serif JP', serif;
  --shadow-sm: 0 1px 3px rgba(43, 36, 48, 0.07);
  --shadow-md: 0 6px 24px rgba(43, 36, 48, 0.09);
  --shadow-lg: 0 16px 44px rgba(43, 36, 48, 0.13);

  /* Alias de compatibilidad (nombres usados en HTML existente) */
  --text: var(--ink);
  --text-dim: var(--ink-soft);
  --kinkaku-bright: var(--gold);
  --kinkaku: var(--gold-soft);
  --torii-bright: var(--torii);
  --washi: #F8F5F0;
  --sumi: var(--ink);
  --sumi-deep: var(--bg);
  --sumi-card: var(--card);
  --glass: #ffffff;
  --glass-border: var(--line);
  --indigo: #3D4F7C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--sakura); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #D8CFC0; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* -------- utilidades -------- */
.container { width: min(1160px, 91%); margin-inline: auto; }
.grad-text { color: var(--torii); }
.neon-text { color: var(--torii); }
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.section-tag::before { content: ''; width: 36px; height: 1px; background: var(--gold-soft); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.section .lead { color: var(--ink-soft); max-width: 660px; font-size: 1.05rem; margin-bottom: 46px; }
.jp-accent { font-family: var(--font-jp); color: var(--torii); font-weight: 600; }

/* -------- animación de aparición -------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------- barra de progreso de lectura -------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--torii); z-index: 200;
}

/* -------- pétalos de sakura -------- */
#petalsGlobal, #petals { position: fixed; inset: 0; pointer-events: none; z-index: 55; }

/* -------- ramas de sakura que enmarcan la página -------- */
.sakura-tree {
  position: fixed; top: 58px; z-index: 50; pointer-events: none;
  width: clamp(200px, 26vw, 380px); opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(217, 130, 155, 0.18));
}
.sakura-tree.tl { left: -26px; }
.sakura-tree.tr { right: -26px; transform: scaleX(-1); }
.sakura-tree svg { display: block; width: 100%; height: auto; transform-origin: 8% 0%; }
/* mecido suave cuando el usuario hace scroll (JS agrega .sway) */
.sakura-tree.sway svg { animation: treeSway 1.4s ease-in-out; }
@keyframes treeSway {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(1.8deg); }
  60% { transform: rotate(-1.2deg); }
  100% { transform: rotate(0deg); }
}

@media (max-width: 980px) {
  .sakura-tree { width: clamp(150px, 30vw, 240px); opacity: 0.75; }
}
@media (max-width: 600px) {
  .sakura-tree.tr { display: none; }
  .sakura-tree.tl { width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sakura-tree.sway svg { animation: none; }
}

/* ============ HEADER ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.logo svg { width: 36px; height: 36px; }
.logo .jp { font-family: var(--font-jp); font-size: 0.64rem; color: var(--ink-soft); display: block; letter-spacing: 0.42em; margin-top: -3px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--torii); }
.menu-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.55rem; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 32px; border-radius: 999px; font-weight: 600; font-size: 0.94rem;
  border: none; transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--torii); color: #fff; box-shadow: 0 6px 18px rgba(196, 30, 58, 0.26); }
.btn-primary:hover { background: var(--torii-dark); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(196, 30, 58, 0.34); }
.btn-ghost { background: rgba(255,255,255,0.9); color: var(--ink); border: 1px solid #D9CDBB; backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--torii); color: var(--torii); background: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8F6719; transform: translateY(-1px); }
.nav .btn { padding: 10px 22px; }

/* ============ HERO: parque de sakura ============ */
.hero {
  min-height: 94svh; display: flex; align-items: center; position: relative;
  background: linear-gradient(180deg, #FFFEFB 0%, #F7EAF1 100%);
  overflow: hidden;
}
/* escena del parque como fondo */
.hero-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
/* velo suave detrás del texto para lectura perfecta */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(255, 254, 251, 0.94) 0%,
    rgba(255, 254, 251, 0.86) 30%,
    rgba(255, 254, 251, 0.55) 52%,
    rgba(255, 254, 251, 0.08) 72%,
    transparent 85%);
}
.hero-inner { position: relative; z-index: 2; padding: 150px 0 110px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px; font-size: 0.8rem; color: var(--ink-soft);
  margin-bottom: 30px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--matcha); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1; font-weight: 800; max-width: 800px; margin-bottom: 26px;
  letter-spacing: -0.015em;
}
.hero .sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 600px; margin-bottom: 42px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 70px; }
.hero-ctas .btn { padding: 15px 34px; font-size: 1rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(28px, 5vw, 70px); width: fit-content; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--torii); }
.hero-stats .stat span { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ============ TARJETAS: PAQUETES ============ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #DFD5C5; }
.card::before {
  content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 3px;
  background: var(--torii); border-radius: 0 0 3px 3px; opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card .emoji { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { font-family: var(--font-display); font-size: 1.28rem; margin-bottom: 6px; line-height: 1.3; }
.card h3 a:hover { color: var(--torii); }
.card .tagline { color: var(--gold); font-size: 0.88rem; font-style: italic; margin-bottom: 14px; }
.card .desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; flex-grow: 1; }
.card .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 18px; }
.card .meta span { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-alt); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.card .precio { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.card .precio small { font-size: 0.76rem; font-family: var(--font-body); color: var(--ink-soft); font-weight: 400; }
.card .incluye { margin: 14px 0 20px; display: none; }
.card.expanded .incluye { display: block; }
.card .incluye li { font-size: 0.86rem; color: var(--ink-soft); padding: 5px 0 5px 22px; position: relative; }
.card .incluye li::before { content: '✓'; position: absolute; left: 0; color: var(--matcha); font-weight: 700; }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions .btn { padding: 11px 18px; font-size: 0.85rem; flex: 1; }
.nivel-badge {
  position: absolute; top: 22px; right: 22px; font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); border: 1px solid #E4D9BF;
  padding: 4px 12px; border-radius: 999px; background: #FBF6E9; font-weight: 600;
}
/* La tarjeta BLACK se distingue con dorado, no con fondo oscuro */
.card.black-card { border: 1.5px solid var(--gold-soft); }
.card.black-card .nivel-badge { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ============ DESTINOS ============ */
.destinos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.destino {
  border-radius: var(--radius); overflow: hidden; position: relative; min-height: 250px;
  display: flex; align-items: flex-end; padding: 24px;
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  isolation: isolate;
}
.destino:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.destino .bg { position: absolute; inset: 0; z-index: -2; }
.destino::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(255,255,255,0.94) 78%); }
.destino h3 { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); }
.destino .kanji { font-family: var(--font-jp); color: var(--torii); font-size: 0.82rem; letter-spacing: 0.3em; font-weight: 600; }
.destino p { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

/* ============ TEMPORADAS ============ */
.temporadas { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 20px; }
.temporada { border-radius: var(--radius); padding: 30px 24px; border: 1px solid var(--line); background: #fff; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.temporada:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.temporada .icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.temporada h3 { font-family: var(--font-display); margin-bottom: 4px; }
.temporada .meses { color: var(--gold); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.temporada p { font-size: 0.88rem; color: var(--ink-soft); }

/* ============ ESTUDIO PROMO ============ */
.estudio-promo {
  border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #FFF9F4 0%, #FBF0EC 55%, #F6E7E4 100%);
  border: 1px solid var(--line);
  padding: clamp(36px, 5.5vw, 68px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  box-shadow: var(--shadow-md);
}
.estudio-promo h2 { margin-bottom: 16px; }
.estudio-promo > div > p { color: var(--ink-soft); }
.estudio-promo .features { margin: 26px 0 34px; display: grid; gap: 14px; }
.estudio-promo .features li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.estudio-promo .features .ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.estudio-mock {
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  padding: 18px; box-shadow: var(--shadow-lg);
}
.estudio-mock .mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.estudio-mock .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.estudio-mock .mock-bar i:first-child { background: var(--torii); }
.estudio-mock .mock-canvas { border-radius: 10px; height: 180px; background: linear-gradient(120deg, #F6DCE4, #EFE3F1, #FBEFD9); display: grid; place-items: center; font-size: 2.8rem; margin-bottom: 14px; }
.estudio-mock .mock-slider { height: 7px; border-radius: 4px; background: var(--bg-alt); margin: 10px 0 14px; position: relative; }
.estudio-mock .mock-slider::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--torii); }
.estudio-mock .mock-slider:nth-of-type(1)::after { width: 70%; }
.estudio-mock .mock-slider:nth-of-type(2)::after { width: 45%; }
.estudio-mock .mock-slider:nth-of-type(3)::after { width: 85%; }
.estudio-mock .mock-label { font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

/* ============ PILARES ============ */
.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 20px; }
.pilar { padding: 30px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.pilar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pilar .num { font-family: var(--font-jp); font-size: 1.8rem; color: var(--torii); }
.pilar h3 { font-size: 1rem; margin: 10px 0 8px; }
.pilar p { font-size: 0.86rem; color: var(--ink-soft); }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; box-shadow: var(--shadow-sm); transition: border-color 0.25s;
}
details.faq:hover, details.faq[open] { border-color: #D9CDB8; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 0.96rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 1.35rem; color: var(--torii); transition: transform 0.25s; flex-shrink: 0; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 12px; color: var(--ink-soft); font-size: 0.92rem; }

/* ============ TESTIMONIOS ============ */
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.testimonio { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; box-shadow: var(--shadow-sm); }
.testimonio .stars { color: var(--gold-soft); letter-spacing: 3px; margin-bottom: 12px; font-size: 0.95rem; }
.testimonio p { font-size: 0.93rem; color: var(--ink-soft); font-style: italic; margin-bottom: 16px; }
.testimonio .autor { font-weight: 600; font-size: 0.92rem; }
.testimonio .autor span { display: block; font-weight: 500; font-size: 0.78rem; color: var(--gold); }

/* ============ CONTACTO ============ */
.contacto-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.07em; margin-bottom: 7px; color: var(--ink-soft); text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid #DCD3C4;
  border-radius: 9px; padding: 13px 15px; color: var(--ink); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--torii); box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.field select option { background: #fff; color: var(--ink); }
.form-msg { margin-top: 14px; font-size: 0.9rem; min-height: 22px; }
.form-msg.ok { color: #3E7A4E; }
.form-msg.error { color: var(--torii); }

/* ============ NEWSLETTER ============ */
.newsletter { display: flex; gap: 12px; max-width: 460px; }
.newsletter input { flex: 1; background: #fff; border: 1px solid #DCD3C4; border-radius: 9px; padding: 13px 18px; color: var(--ink); font-size: 0.93rem; }
.newsletter input:focus { outline: none; border-color: var(--gold); }

/* ============ FOOTER (claro) ============ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 30px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--ink-soft); font-size: 0.9rem; transition: color 0.2s; }
.footer li a:hover { color: var(--torii); }
.footer .desc { color: var(--ink-soft); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.82rem; }

/* ============================================================
   ESTUDIO CREATIVO
   ============================================================ */
.estudio-page { padding-top: 74px; min-height: 100vh; }
.estudio-hero { padding: 56px 0 26px; }
.estudio-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 10px; }
.estudio-hero p { color: var(--ink-soft); max-width: 640px; }

.tabs { display: flex; gap: 8px; margin: 30px 0 26px; flex-wrap: wrap; }
.tab-btn {
  padding: 11px 24px; border-radius: 8px; border: 1px solid #D9D1C4;
  background: #fff; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.tab-btn:hover { border-color: var(--torii); color: var(--torii); }
.tab-btn.active { background: var(--torii); color: #fff; border-color: var(--torii); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- zona de subida --- */
.dropzone {
  border: 2px dashed #D9C7B2; border-radius: 16px; padding: clamp(40px, 6vw, 72px);
  text-align: center; background: #fff; transition: all 0.25s; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--torii); background: #FDF4F2; }
.dropzone .icon { font-size: 3rem; margin-bottom: 14px; display: block; }
.dropzone h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 8px; }
.dropzone p { color: var(--ink-soft); font-size: 0.92rem; }
.upload-progress { margin-top: 18px; font-size: 0.9rem; color: #3E7A4E; min-height: 24px; }

/* --- galería --- */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 26px; }
.media-thumb {
  border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 1;
  border: 2px solid var(--line); cursor: pointer; background: var(--bg-alt);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.media-thumb:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.media-thumb.selected { border-color: var(--torii); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .tipo-badge {
  position: absolute; top: 8px; left: 8px; font-size: 0.64rem; font-weight: 700;
  background: rgba(255,255,255,0.92); color: var(--ink); padding: 3px 10px; border-radius: 999px; letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}
.media-thumb .del-btn {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.95); border: none; color: var(--ink); font-size: 0.85rem; opacity: 0;
  transition: opacity 0.2s; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.media-thumb:hover .del-btn { opacity: 1; }
.media-thumb .del-btn:hover { background: var(--torii); color: #fff; }
.media-thumb .orden-badge {
  position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--torii); color: #fff; font-weight: 700; font-size: 0.8rem;
  display: grid; place-items: center;
}

/* --- editor --- */
.editor-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.editor-stage {
  background: repeating-conic-gradient(rgba(43,36,48,0.05) 0% 25%, transparent 0% 50%) 0 0 / 22px 22px, var(--bg-alt);
  border: 1px solid var(--line); border-radius: 16px; min-height: 420px;
  display: grid; place-items: center; overflow: hidden; padding: 18px;
}
.editor-stage .placeholder { color: var(--ink-soft); text-align: center; font-size: 0.95rem; }
.editor-stage img, .editor-stage video { max-height: 62vh; border-radius: 8px; }
.editor-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; position: sticky; top: 92px; box-shadow: var(--shadow-sm);
}
.editor-panel h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 4px; }
.editor-panel .sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 18px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.preset {
  border-radius: 9px; border: 1px solid var(--line); background: var(--bg);
  padding: 8px 4px 6px; text-align: center; font-size: 0.6rem; color: var(--ink-soft);
  transition: all 0.2s; letter-spacing: 0.02em; font-weight: 600;
}
.preset .chip { display: block; height: 28px; border-radius: 6px; margin-bottom: 5px; }
.preset:hover { border-color: var(--gold-soft); color: var(--ink); }
.preset.active { border-color: var(--torii); color: var(--torii); }
.slider-row { margin-bottom: 14px; }
.slider-row .slider-head { display: flex; justify-content: space-between; font-size: 0.76rem; margin-bottom: 6px; }
.slider-row .slider-head label { color: var(--ink-soft); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.slider-row .slider-head output { color: var(--torii); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--torii) var(--fill, 50%), #E4DCCE var(--fill, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--torii); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.editor-actions { display: grid; gap: 10px; margin-top: 22px; }
.editor-actions .btn { width: 100%; font-size: 0.88rem; padding: 12px; }
.editor-msg { font-size: 0.85rem; min-height: 20px; margin-top: 10px; text-align: center; }
.editor-msg.ok { color: #3E7A4E; }
.editor-msg.error { color: var(--torii); }

/* --- reels --- */
.reel-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.reel-preview-wrap { display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
#reelCanvas { height: min(66vh, 620px); width: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #EDE6DA; box-shadow: var(--shadow-lg); }
.reel-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.reel-panel h3 { font-family: var(--font-display); margin-bottom: 4px; }
.reel-panel .sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 16px; }
.reel-controls { display: grid; gap: 14px; }
.reel-controls p, .reel-controls label { color: var(--ink-soft); }
.reel-status { font-size: 0.85rem; color: var(--gold); min-height: 20px; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--torii); animation: pulse 1s infinite; margin-right: 7px; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ============ PLANTILLAS / BEAT SYNC ============ */
.tpl-intro { margin: 6px 0 24px; }
.tpl-intro h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.tpl-intro p { color: var(--ink-soft); max-width: 690px; font-size: 0.96rem; }
.tpl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tpl-cat-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 7px 15px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.16s; }
.tpl-cat-chip:hover { border-color: var(--torii); color: var(--torii); }
.tpl-cat-chip.active { background: var(--torii); color: #fff; border-color: var(--torii); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.tpl-badge { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(2px); }
.tpl-wave { width: 100%; height: 60px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; display: block; }
.tpl-contador { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.tpl-flujo { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.5; background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }
.tpl-card { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43, 36, 48, 0.14); border-color: var(--torii); }
.tpl-card-canvas { position: relative; aspect-ratio: 9 / 16; max-height: 240px; display: grid; place-items: center; font-size: 3.4rem; color: #fff; }
.tpl-play { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: var(--torii); display: grid; place-items: center; font-size: 0.85rem; }
.tpl-card-body { padding: 12px 14px 16px; display: grid; gap: 4px; }
.tpl-card-body b { font-family: var(--font-display); font-size: 1.05rem; }
.tpl-cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--torii); font-weight: 700; }
.tpl-track { font-size: 0.78rem; color: var(--ink-soft); }
.tpl-music { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; color: var(--ink); }
.tpl-mood { color: var(--ink-soft); }
.tpl-fotos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; max-height: 260px; overflow-y: auto; padding: 4px 2px; }
.tpl-foto { position: relative; aspect-ratio: 1; border-radius: 8px; border: 2px solid var(--line); background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.tpl-foto.sel { border-color: var(--torii); box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.25); }
.tpl-foto-num { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--torii); color: #fff; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.tpl-empty { color: var(--ink-soft); font-size: 0.9rem; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; }
.chk input { accent-color: var(--torii); }
.tpl-credito { font-size: 0.72rem; color: var(--ink-soft); opacity: 0.85; margin-top: 4px; }
#tplCanvas { max-height: 70vh; width: auto; max-width: 100%; border-radius: 18px; box-shadow: 0 18px 50px rgba(43,36,48,0.22); background: #000; transition: box-shadow 0.3s ease; }

/* --- Música: cabecera con botón cambiar --- */
.tpl-music { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tpl-mtxt { flex: 1; min-width: 0; }
.tpl-swap { border: 1px solid var(--torii); color: var(--torii); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 0.76rem; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(.4,0,.2,1); white-space: nowrap; }
.tpl-swap:hover { background: var(--torii); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(196,30,58,0.28); }

/* --- Panel de música (overlay suave) --- */
.tpl-mpanel { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(26,26,46,0.42); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.22s ease; }
.tpl-mpanel.open { opacity: 1; }
.tpl-mpanel[hidden] { display: none; }
.tpl-mpanel-box { width: min(460px, 100%); max-height: 82vh; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); padding: 20px;
  transform: translateY(16px) scale(0.98); transition: transform 0.26s cubic-bezier(.2,.8,.2,1); }
.tpl-mpanel.open .tpl-mpanel-box { transform: translateY(0) scale(1); }
.tpl-mpanel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tpl-mpanel-head b { font-family: var(--font-display); font-size: 1.25rem; }
.tpl-mclose { border: none; background: var(--bg-alt); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; color: var(--ink-soft); transition: all 0.18s; }
.tpl-mclose:hover { background: var(--torii); color: #fff; transform: rotate(90deg); }
.tpl-import { display: block; border: 1.5px dashed var(--sakura-deep); border-radius: 14px; padding: 14px; text-align: center; cursor: pointer; margin-bottom: 14px; transition: all 0.2s; background: #FFF9FB; }
.tpl-import:hover { border-color: var(--torii); background: #FDF4F2; transform: translateY(-1px); }
.tpl-import span { display: block; font-weight: 700; color: var(--torii); font-size: 0.95rem; }
.tpl-import small { color: var(--ink-soft); font-size: 0.76rem; }
.tpl-mgeneros { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 6px; scrollbar-width: thin; }
.tpl-mgeneros .tpl-cat-chip { flex: 0 0 auto; padding: 5px 12px; font-size: 0.76rem; }
.tpl-mlist { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.tpl-mrow { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 13px; transition: all 0.18s cubic-bezier(.4,0,.2,1); }
.tpl-mrow:hover { border-color: var(--sakura-deep); background: #FFFAFB; transform: translateX(2px); }
.tpl-mrow.sel { border-color: var(--torii); background: #FDF4F2; }
.tpl-mplay { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--torii); color: #fff; cursor: pointer; font-size: 0.85rem; display: grid; place-items: center; transition: transform 0.16s; }
.tpl-mplay:hover { transform: scale(1.1); }
.tpl-mplay.playing { background: var(--gold); animation: pulse 1s infinite; }
.tpl-minfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tpl-minfo b { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-minfo small { color: var(--ink-soft); font-size: 0.74rem; }
.tpl-muse { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 13px; font-size: 0.76rem; font-weight: 700; cursor: pointer; transition: all 0.18s; }
.tpl-muse:hover { border-color: var(--torii); color: var(--torii); }
.tpl-mrow.sel .tpl-muse { color: #3E7A4E; border-color: #3E7A4E; }
.tpl-mnote { font-size: 0.72rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }

/* --- Buscador de canción real --- */
.tpl-msearch { display: flex; gap: 8px; margin-bottom: 10px; }
.tpl-msearch input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 0.9rem; background: var(--bg); color: var(--ink); outline: none; transition: all 0.18s; }
.tpl-msearch input:focus { border-color: var(--torii); box-shadow: 0 0 0 3px rgba(196,30,58,0.12); }
.tpl-msearch .btn { padding: 10px 16px; font-size: 0.85rem; white-space: nowrap; }
.tpl-songs { display: flex; flex-direction: column; gap: 8px; max-height: 230px; overflow-y: auto; }
.tpl-songs:not(:empty) { margin-bottom: 6px; }
.tpl-srow { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 13px; transition: all 0.18s cubic-bezier(.4,0,.2,1); }
.tpl-srow:hover { border-color: var(--sakura-deep); background: #FFFAFB; transform: translateX(2px); }
.tpl-sart { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; background: var(--bg-alt); }
.tpl-mdivider { display: flex; align-items: center; text-align: center; gap: 12px; color: var(--ink-soft); font-size: 0.74rem; margin: 14px 0; }
.tpl-mdivider::before, .tpl-mdivider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ================================================================
   VISTA OSCURA estilo BEAT (ejemplo.jpeg) — pestaña Plantillas
   ================================================================ */
#tab-plantillas { background: #0b0b0f; color: #f5f5f7; border-radius: 20px; padding: 20px 16px 30px; margin-top: 6px; }
#tab-plantillas .tpl-intro h2 { color: #fff; }
#tab-plantillas .tpl-intro p { color: rgba(255,255,255,0.6); }
#tab-plantillas .grad-text { background: linear-gradient(90deg,#FFB7C5,#C41E3A); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Tabs de categoría: scroll horizontal, activo = pill claro */
#tab-plantillas .tpl-cats { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: none; }
#tab-plantillas .tpl-cats::-webkit-scrollbar { display: none; }
#tab-plantillas .tpl-cat-chip { flex: 0 0 auto; border: none; background: transparent; color: rgba(255,255,255,0.5); border-radius: 999px; padding: 8px 17px; font-size: 0.98rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
#tab-plantillas .tpl-cat-chip:hover { color: #fff; }
#tab-plantillas .tpl-cat-chip.active { background: #fff; color: #111; }

/* Grid de tarjetas-foto 9:16 */
#tab-plantillas .tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
#tab-plantillas .tpl-card { position: relative; border: none; background: none; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.tpl-cover { position: relative; display: block; aspect-ratio: 9 / 16; background-size: cover; background-position: center; background-color: #1a1a22; border-radius: 18px; overflow: hidden; transition: transform 0.4s ease; }
#tab-plantillas .tpl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.6); }
#tab-plantillas .tpl-card:hover .tpl-cover { transform: scale(1.04); }
.tpl-cover-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.28) 32%, transparent 56%); }
.tpl-cover-info { position: absolute; left: 12px; right: 42px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.tpl-cover-info b { color: #fff; font-size: 0.96rem; font-weight: 700; }
.tpl-cover-info small { color: rgba(255,255,255,0.82); font-size: 0.79rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-plantillas .tpl-play { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.22); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; font-size: 0.8rem; }

/* Vista de trabajo (tras elegir plantilla) también oscura */
#tplWork .reel-preview-wrap { background: #060608; border-color: #1e1e26; }
#tplWork .reel-panel { background: #15151c; border-color: #26262f; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
#tplWork .reel-panel h3, #tplWork .tpl-cover-info b { color: #fff; }
#tplWork .reel-panel .sub, #tplWork .reel-controls p, #tplWork .reel-controls label,
#tplWork .tpl-contador, #tplWork .tpl-credito, #tplWork .chk { color: rgba(255,255,255,0.62); }
#tplWork .tpl-flujo { background: #0f0f14; color: rgba(255,255,255,0.62); }
#tplWork .field label, #tplWork .slider-head label { color: rgba(255,255,255,0.62); }
#tplWork .field input, #tplWork .field select { background: #0f0f14; color: #fff; border-color: #2a2a33; }
#tplWork .tpl-music, #tplWork .tpl-wave { background: #0f0f14; border-color: #26262f; color: #eee; }
#tplWork .tpl-foto { border-color: #2a2a33; }
#tplWork .btn-ghost, #tplBack { color: #eee; border-color: #3a3a44; background: transparent; }
#tplWork .btn-ghost:hover, #tplBack:hover { border-color: var(--torii); color: #fff; background: rgba(196,30,58,0.15); }

/* Panel de música también oscuro */
.tpl-mpanel-box { background: #15151c; color: #f5f5f7; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.tpl-mpanel-head b { color: #fff; }
.tpl-mclose { background: #26262f; color: #ccc; }
.tpl-mrow, .tpl-srow { border-color: #26262f; }
.tpl-mrow:hover, .tpl-srow:hover { background: #1d1d26; border-color: #3a2a30; }
.tpl-mrow.sel { background: #221820; border-color: var(--torii); }
.tpl-minfo small { color: rgba(255,255,255,0.55); }
.tpl-import { background: #0f0f14; border-color: #4a3540; }
.tpl-import:hover { background: #1a1016; }
.tpl-msearch input { background: #0f0f14; color: #fff; border-color: #2a2a33; }
.tpl-muse { background: transparent; color: #eee; border-color: #3a3a44; }
.tpl-mnote, .tpl-mdivider, .tpl-mgeneros .tpl-cat-chip { color: rgba(255,255,255,0.55); }
.tpl-mgeneros .tpl-cat-chip { background: #0f0f14; border-color: #2a2a33; }
.tpl-mgeneros .tpl-cat-chip.active { background: #fff; color: #111; border-color: #fff; }

/* --- Suavizado general estilo BEAT --- */
.tpl-card { transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease; }
.tpl-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(43,36,48,0.16); }
.tpl-card:active { transform: translateY(-2px) scale(0.99); }
.tpl-card-canvas { transition: filter 0.3s ease; }
.tpl-card:hover .tpl-card-canvas { filter: saturate(1.12) brightness(1.03); }
.tpl-foto { transition: transform 0.18s cubic-bezier(.2,.8,.2,1), border-color 0.18s, box-shadow 0.18s; }
.tpl-foto:hover { transform: scale(1.05); }
.tpl-foto.sel { transform: scale(1.02); }
.tpl-cat-chip { transition: all 0.2s cubic-bezier(.4,0,.2,1); }
.tab-panel.active { animation: tplFadeUp 0.4s cubic-bezier(.2,.8,.2,1); }
.tpl-grid > .tpl-card { animation: tplFadeUp 0.45s cubic-bezier(.2,.8,.2,1) both; }
.tpl-grid > .tpl-card:nth-child(2) { animation-delay: 0.04s; }
.tpl-grid > .tpl-card:nth-child(3) { animation-delay: 0.08s; }
.tpl-grid > .tpl-card:nth-child(4) { animation-delay: 0.12s; }
.tpl-grid > .tpl-card:nth-child(5) { animation-delay: 0.16s; }
.tpl-grid > .tpl-card:nth-child(6) { animation-delay: 0.2s; }
@keyframes tplFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .tpl-card, .tpl-foto, .tab-panel.active, .tpl-grid > .tpl-card, .tpl-mpanel, .tpl-mpanel-box { animation: none !important; transition: none !important; }
}

/* ============ GUÍA / ARTÍCULOS ============ */
.articulo { max-width: 780px; margin-inline: auto; }
.articulo h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.18; margin-bottom: 16px; }
.articulo h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 38px 0 14px; color: var(--ink); }
.articulo p, .articulo li { color: var(--ink-soft); font-size: 1.01rem; margin-bottom: 14px; }
.articulo ul { list-style: none; padding-left: 4px; }
.articulo ul li { padding-left: 26px; position: relative; }
.articulo ul li::before { content: '⛩'; position: absolute; left: 0; color: var(--torii); font-size: 0.78rem; }
.articulo table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; background: #fff; }
.articulo th, .articulo td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.articulo th { background: var(--bg-alt); color: var(--ink); }
.articulo .cta-box {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--torii);
  border-radius: 12px; padding: 28px; margin: 36px 0; box-shadow: var(--shadow-sm);
}
.articulo .cta-box h2 { margin-top: 0; }
.guia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.guia-grid .card h3 { font-size: 1.15rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .estudio-promo, .contacto-wrap { grid-template-columns: 1fr; }
  .editor-layout, .reel-layout { grid-template-columns: 1fr; }
  .editor-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(255, 254, 251, 0.93) 0%,
      rgba(255, 254, 251, 0.82) 55%,
      rgba(255, 254, 251, 0.35) 80%,
      transparent 100%);
  }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 74px; right: 0; flex-direction: column; align-items: flex-start;
    background: #FDFBF7;
    width: min(320px, 84vw); height: calc(100vh - 74px); padding: 34px 30px; gap: 22px;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
    border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: none; }
  .menu-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .presets { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   REDISEÑO VISUAL SAKURA — hero fotográfico aprobado
   Mantiene el contenido y la funcionalidad; cambia únicamente
   la presentación para igualar la referencia clara y premium.
   ============================================================ */
:root {
  --torii: #e33f62;
  --torii-dark: #c92f50;
  --gold: #b88943;
  --ink: #20293a;
  --ink-soft: #5f6675;
  --bg: #fffaf6;
  --bg-alt: #fff4ef;
  --line: #efdcd7;
  --sakura: #f9dce4;
  --sakura-deep: #df718a;
  --shadow-sm: 0 4px 18px rgba(105, 62, 73, 0.06);
  --shadow-md: 0 12px 34px rgba(105, 62, 73, 0.09);
  --shadow-lg: 0 22px 54px rgba(105, 62, 73, 0.13);
}

body {
  background: #fffaf6;
}

/* El paisaje fotográfico ya contiene las ramas; se eliminan los adornos
   vectoriales fijos que generaban el árbol grande de la versión anterior. */
.sakura-tree,
.hero-scene {
  display: none !important;
}

.header {
  height: 86px;
  background: rgba(255, 250, 246, 0.76);
  border-bottom: 1px solid rgba(231, 193, 198, 0.35);
  box-shadow: 0 8px 28px rgba(80, 46, 57, 0.035);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.header-inner {
  height: 86px;
  width: min(1700px, 94%);
}
.logo {
  gap: 13px;
  font-size: 1.45rem;
  letter-spacing: 0.11em;
  font-weight: 600;
}
.logo svg {
  width: 46px;
  height: 46px;
}
.logo .jp {
  color: #d96d83;
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  margin-top: -2px;
}
.nav {
  gap: clamp(18px, 2.2vw, 38px);
}
.nav a {
  color: #2f3542;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav > a:not(.btn) {
  position: relative;
}
.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1.5px;
  background: var(--torii);
  transition: right 0.25s ease;
}
.nav > a:not(.btn):hover::after {
  right: 0;
}
.nav .btn-primary {
  color: var(--torii);
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(227, 63, 98, 0.65);
  box-shadow: none;
  padding: 11px 22px;
}
.nav .btn-primary:hover {
  color: #fff;
  background: var(--torii);
  box-shadow: 0 10px 24px rgba(227, 63, 98, 0.18);
}

.hero {
  min-height: 920px;
  background-color: #fffaf6;
  background-image: url('/img/hero-sakura-garden.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  align-items: stretch;
  isolation: isolate;
}
.hero::before {
  background:
    radial-gradient(circle at 79% 46%, rgba(255,255,255,0.38), transparent 40%),
    linear-gradient(90deg,
      rgba(255,250,246,0.00) 0%,
      rgba(255,250,246,0.00) 42%,
      rgba(255,250,246,0.58) 55%,
      rgba(255,250,246,0.92) 68%,
      rgba(255,250,246,0.98) 100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255,250,246,0.94));
}
.hero-inner {
  width: min(1700px, 94%);
  margin-inline: auto;
  padding: 185px 0 96px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-inner > * {
  width: min(720px, 48%);
  margin-left: auto;
}
.hero-badge {
  width: fit-content;
  max-width: 48%;
  padding: 10px 20px;
  margin-bottom: 36px;
  color: #505968;
  background: rgba(249, 230, 222, 0.72);
  border: 1px solid rgba(226, 183, 179, 0.3);
  box-shadow: 0 9px 28px rgba(137, 83, 91, 0.06);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-size: 0.82rem;
}
.hero-badge .dot {
  width: 20px;
  height: 20px;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 0;
}
.hero-badge .dot::before {
  content: '✿';
  color: #e56a83;
  font-size: 1.05rem;
  line-height: 1;
}
.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: #20293a;
  font-size: clamp(4.1rem, 5.4vw, 6.15rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 .neon-text,
.hero .neon-text {
  color: #df718a;
  text-shadow: none;
  font-weight: 700;
}
.hero h1::after {
  content: '✿';
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-top: 28px;
  color: #efb9c5;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  background:
    linear-gradient(#efc9d0, #efc9d0) left center / calc(50% - 30px) 1px no-repeat,
    linear-gradient(#efc9d0, #efc9d0) right center / calc(50% - 30px) 1px no-repeat;
}
.hero .sub {
  max-width: 660px;
  margin-bottom: 34px;
  color: #4f5868;
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.75;
}
.hero-ctas {
  max-width: 680px;
  margin-bottom: 34px;
  gap: 16px;
}
.hero-ctas .btn {
  min-height: 58px;
  padding: 15px 34px;
  border-radius: 14px;
  font-size: 0.98rem;
}
.hero-ctas .btn-primary {
  background: linear-gradient(135deg, #e64164, #d93659);
  box-shadow: 0 14px 30px rgba(220, 55, 87, 0.22);
}
.hero-ctas .btn-primary:hover {
  background: linear-gradient(135deg, #d93659, #c92f50);
}
.hero-ctas .btn-ghost {
  color: #d94b68;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(224, 82, 109, 0.6);
  box-shadow: 0 8px 24px rgba(113, 68, 77, 0.04);
}
.hero-ctas .btn-ghost::after {
  content: '◌';
  font-size: 1.1rem;
}
.hero-ctas .btn-ghost:hover {
  color: #fff;
  background: var(--torii);
  border-color: var(--torii);
}
.hero-stats {
  max-width: 720px;
  width: min(720px, 48%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 17px 8px;
  border: 1px solid rgba(230, 196, 192, 0.58);
  border-radius: 18px;
  background: rgba(255,255,255,0.56);
  box-shadow: 0 14px 40px rgba(113, 68, 77, 0.07);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.hero-stats .stat {
  padding: 0 17px;
  text-align: center;
  border-right: 1px solid rgba(229, 198, 194, 0.65);
}
.hero-stats .stat:last-child {
  border-right: 0;
}
.hero-stats .stat b {
  color: #d94b68;
  font-size: clamp(1.18rem, 1.6vw, 1.55rem);
}
.hero-stats .stat span {
  color: #676d79;
  font-size: 0.69rem;
}

#petalsGlobal,
#petals {
  z-index: 60;
  opacity: 0.96;
}

/* Coherencia visual del resto de la página sin alterar su contenido. */
.section:nth-of-type(even) {
  background-color: #fff7f2;
}
.card,
.form-card,
.testimonio,
.faq-item {
  border-color: #f0dfda;
}
.card:hover {
  border-color: #eebec8;
  box-shadow: 0 20px 48px rgba(111, 71, 80, 0.12);
}

@media (max-width: 1250px) {
  .hero {
    min-height: 860px;
    background-position: 44% center;
  }
  .hero-inner > *,
  .hero-stats {
    width: min(650px, 52%);
    max-width: 52%;
  }
  .hero-badge {
    max-width: 52%;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 5.8vw, 5rem);
  }
}

@media (max-width: 980px) {
  .header,
  .header-inner {
    height: 74px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .logo svg {
    width: 40px;
    height: 40px;
  }
  .hero {
    min-height: 820px;
    background-position: 36% center;
  }
  .hero::before {
    background: linear-gradient(90deg,
      rgba(255,250,246,0.08) 0%,
      rgba(255,250,246,0.32) 34%,
      rgba(255,250,246,0.88) 58%,
      rgba(255,250,246,0.99) 100%);
  }
  .hero-inner {
    padding-top: 145px;
  }
  .hero-inner > *,
  .hero-stats {
    width: min(600px, 58%);
    max-width: 58%;
  }
  .hero-badge {
    max-width: 58%;
  }
}

@media (max-width: 760px) {
  .header {
    background: rgba(255, 250, 246, 0.94);
  }
  .header-inner {
    width: min(94%, 680px);
  }
  .logo {
    font-size: 1rem;
    letter-spacing: 0.07em;
  }
  .logo svg {
    width: 36px;
    height: 36px;
  }
  .nav {
    top: 74px;
    background: rgba(255, 250, 246, 0.98);
    border-left-color: #f0deda;
  }
  .hero {
    min-height: auto;
    background-size: auto 100%;
    background-position: 27% center;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(255,250,246,0.30) 0%, rgba(255,250,246,0.80) 32%, rgba(255,250,246,0.98) 65%, #fffaf6 100%),
      linear-gradient(90deg, rgba(255,250,246,0.15), rgba(255,250,246,0.88));
  }
  .hero-inner {
    width: min(92%, 640px);
    padding: 310px 0 72px;
  }
  .hero-inner > *,
  .hero-stats,
  .hero-badge {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .hero-badge {
    width: fit-content;
    font-size: 0.73rem;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.4rem);
    line-height: 1.02;
    margin-bottom: 22px;
  }
  .hero h1::after {
    margin-top: 21px;
  }
  .hero .sub {
    font-size: 0.98rem;
    line-height: 1.65;
  }
  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
  .hero-stats .stat:nth-child(2) {
    border-right: 0;
  }
  .hero-stats .stat:nth-child(-n+2) {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(229, 198, 194, 0.65);
  }
}

@media (max-width: 430px) {
  .logo .jp {
    display: none;
  }
  .hero-inner {
    padding-top: 270px;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 3.55rem);
  }
}

/* ============================================================
   ITINERARIO DÍA A DÍA — timeline en páginas de paquete
   ============================================================ */
.itin-section { margin-bottom: 64px; }
.itin { list-style: none; padding: 0; margin: 0; position: relative; max-width: 780px; }
.itin-etapa { display: grid; grid-template-columns: 56px 1fr; gap: 18px; position: relative; padding-bottom: 34px; }
.itin-etapa:last-child { padding-bottom: 0; }
.itin-rail { position: relative; display: flex; justify-content: center; }
.itin-rail::before {
  content: ''; position: absolute; top: 52px; bottom: -8px; width: 2px;
  background: linear-gradient(180deg, var(--gold-soft, #C9A84C), rgba(201,168,76,0.18));
}
.itin-etapa:last-child .itin-rail::before { display: none; }
.itin-dot {
  width: 52px; height: 52px; border-radius: 50%; background: #fff;
  border: 2px solid var(--gold-soft, #C9A84C); display: grid; place-items: center;
  font-size: 1.45rem; box-shadow: var(--shadow-sm); position: relative; z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.itin-etapa:hover .itin-dot { transform: scale(1.08); box-shadow: 0 8px 22px rgba(196,30,58,0.18); border-color: var(--torii); }
.itin-body {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.itin-etapa:hover .itin-body { transform: translateX(3px); border-color: var(--gold-soft, #C9A84C); box-shadow: var(--shadow-md); }
.itin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.itin-dias {
  background: var(--torii); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.itin-lugar { font-family: var(--font-display); font-size: 1.18rem; margin: 0; }
.itin-titulo { display: block; color: var(--gold, #a8863a); font-size: 0.9rem; margin-bottom: 6px; }
.itin-texto { color: var(--ink-soft, var(--text-dim)); font-size: 0.94rem; line-height: 1.65; margin: 0; }
@media (max-width: 600px) {
  .itin-etapa { grid-template-columns: 42px 1fr; gap: 12px; }
  .itin-dot { width: 40px; height: 40px; font-size: 1.1rem; }
  .itin-rail::before { top: 42px; }
  .itin-body { padding: 14px 16px; }
  .itin-lugar { font-size: 1.05rem; }
}

/* ============================================================
   ESTUDIO CREATIVO EN CELULAR — experiencia táctil intuitiva
   ============================================================ */
@media (max-width: 760px) {
  .estudio-hero { padding: 30px 0 12px; }
  .estudio-hero p { font-size: 0.92rem; }

  /* Tabs siempre a la vista y deslizables con el dedo */
  .tabs {
    position: sticky; top: 70px; z-index: 60;
    background: var(--bg, #FDFBF7); margin: 16px -4px 14px; padding: 10px 4px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; padding: 11px 16px; font-size: 0.84rem; }

  /* Botones y controles con área táctil cómoda (≥44px) */
  .estudio-page .btn { min-height: 46px; }
  .estudio-page input[type="range"] { height: 7px; }
  .estudio-page input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; }

  /* Galería: 2 columnas y acciones SIEMPRE visibles (no hay hover táctil) */
  .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
  .media-thumb .del-btn { opacity: 1; }
  .dropzone { padding: 30px 16px; }
  .dropzone h3 { font-size: 1.1rem; }

  /* Editor: preview arriba, panel abajo, presets deslizables */
  .editor-stage { min-height: 240px; padding: 10px; }
  .editor-stage img, .editor-stage video { max-height: 46vh; }
  .editor-panel { padding: 16px; }
  .presets {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 8px; padding-bottom: 6px;
  }
  .presets::-webkit-scrollbar { display: none; }
  .preset { flex: 0 0 76px; }

  /* Plantillas: 2 tarjetas por fila, texto legible */
  #tab-plantillas { padding: 14px 10px 24px; border-radius: 14px; }
  #tab-plantillas .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tpl-cover-info b { font-size: 0.82rem; }
  .tpl-cover-info small { font-size: 0.69rem; }
  #tab-plantillas .tpl-play { width: 30px; height: 30px; }

  /* Vista de trabajo: preview compacto para que los controles queden cerca */
  .reel-layout { gap: 14px; }
  .reel-preview-wrap { padding: 10px; }
  #tplCanvas { max-height: 48vh; }
  #reelCanvas { height: min(48vh, 420px); }
  .reel-panel { padding: 16px; }
  .tpl-fotos-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 210px; }
  .tpl-wave { height: 52px; }

  /* Panel de música tipo "bottom sheet" (como las apps nativas) */
  .tpl-mpanel { padding: 0; place-items: end center; }
  .tpl-mpanel-box {
    width: 100%; max-height: 88vh;
    border-radius: 22px 22px 0 0; padding: 16px 16px 26px;
    transform: translateY(40px);
  }
  .tpl-mpanel.open .tpl-mpanel-box { transform: translateY(0); }
  .tpl-songs { max-height: 42vh; }
  .tpl-mplay { width: 44px; height: 44px; }
  .tpl-muse { padding: 10px 16px; }
}

@media (max-width: 430px) {
  .tab-btn { padding: 10px 13px; font-size: 0.8rem; }
  #tab-plantillas .tpl-grid { gap: 8px; }
  .tpl-fotos-grid { grid-template-columns: repeat(3, 1fr); }
  .estudio-hero h1 { font-size: 1.75rem; }
}
