/* Il Gran Tenore — estilo común (negro teatro + oro) */
:root {
  --negro: #0b0908;
  --negro-2: #15110e;
  --negro-3: #1f1914;
  --oro: #d4a94f;
  --oro-claro: #f0d48c;
  --oro-osc: #9c7428;
  --granate: #7a1218;
  --crema: #f4ecdd;
  --gris: #b9ad9a;
  --linea: rgba(212, 169, 79, 0.28);
  --verde-wa: #25d366;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  --radio: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--crema);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oro-claro); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); }
p { margin: 0; }
.oro { color: var(--oro-claro); }
.ital { font-style: italic; }

.contenedor { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.estrecho { max-width: 760px; }
.seccion { padding: 80px 0; }
.seccion.oscura { background: var(--negro-2); }
.centro { text-align: center; }
.pila { display: flex; flex-direction: column; gap: 20px; }
.pila.centro { align-items: center; }

/* Barra superior y cabecera */
.aviso {
  background: var(--granate);
  color: var(--crema);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
}
.aviso.prueba { background: #8a5a00; }
.progreso { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; background: var(--negro-2); border-bottom: 1px solid var(--linea); padding: 10px 16px; font-size: 13px; color: var(--gris); letter-spacing: 0.5px; }
.progreso .hecho { color: var(--oro); }
.progreso .actual { color: var(--crema); font-weight: 700; border-bottom: 2px solid var(--oro); }
.no-gracias { color: var(--gris); font-size: 16px; padding: 12px; min-height: 44px; }
.no-gracias:hover { color: var(--crema); }
.cabecera { border-bottom: 1px solid var(--linea); background: var(--negro); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.marca { display: flex; align-items: center; gap: 16px; text-decoration: none; text-align: left; color: var(--oro); line-height: 1.1; }
.marca-texto { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; border-left: 1px solid var(--linea); }
.marca b { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: 5px; font-weight: 700; }
.marca-texto span { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--crema); }
.marca-texto em { font-family: var(--serif); font-size: 15px; font-style: italic; letter-spacing: 0.5px; color: var(--gris); }
/* Menú principal: en línea en escritorio; botón desplegable en tableta y móvil */
.menu { display: flex; align-items: center; gap: 26px; }
.menu a {
  color: var(--crema); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.5px;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--oro-claro); border-bottom-color: var(--oro); }
.menu a.menu-destacado { color: var(--oro-claro); border: 1px solid var(--oro); border-radius: 999px; padding: 8px 18px; }
.menu a.menu-destacado:hover, .menu a.menu-destacado[aria-current="page"] { background: rgba(212, 169, 79, 0.14); }
.menu-boton { display: none; }
@media (max-width: 1000px) {
  .menu-boton {
    display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 600; color: var(--oro-claro);
    background: transparent; border: 1px solid var(--linea); border-radius: 999px; padding: 10px 16px; min-height: 44px;
  }
  .menu-boton[aria-expanded="true"] { border-color: var(--oro); background: rgba(212, 169, 79, 0.12); }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 9, 8, 0.97); border-bottom: 1px solid var(--linea);
    padding: 6px 20px 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .cabecera.menu-abierto .menu { display: flex; }
  .menu a { padding: 15px 4px; font-size: 17px; border-bottom: 1px solid var(--linea); }
  .menu a.menu-destacado { order: -1; margin: 10px 0 6px; text-align: center; border-radius: 12px; padding: 14px; }
}
@media (max-width: 480px) {
  .menu-boton { padding: 10px 12px; }
  .menu-boton span { display: none; }
  .cabecera .contenedor { gap: 10px; }
  .marca b { font-size: 17px; letter-spacing: 2px; white-space: nowrap; }
  .marca:hover b { letter-spacing: 2px; }
}

/* Sello de la escuela: medallón con anillo de oro */
.marca-sello {
  width: 64px; height: 64px; flex: none; border-radius: 50%;
  background: #f7f7f7;
  border: 2px solid var(--oro);
  box-shadow: 0 0 0 4px var(--negro), 0 0 0 5px var(--linea), 0 6px 22px rgba(212, 169, 79, 0.22);
  transition: width 0.4s var(--suave), height 0.4s var(--suave), transform 0.6s var(--suave), box-shadow 0.4s ease;
}
.marca:hover .marca-sello { transform: rotate(-6deg) scale(1.04); box-shadow: 0 0 0 4px var(--negro), 0 0 0 5px var(--oro), 0 8px 28px rgba(240, 212, 140, 0.4); }
.cabecera.compacta .marca-sello { width: 48px; height: 48px; }
.pie-marca { display: flex; align-items: center; gap: 16px; }
.pie-marca img { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #f7f7f7; border: 2px solid var(--oro); }
@media (max-width: 480px) {
  .marca { gap: 12px; }
  .marca-sello { width: 52px; height: 52px; }
  .cabecera.compacta .marca-sello { width: 42px; height: 42px; }
  .marca-texto { padding-left: 12px; }
  .marca b { font-size: 20px; letter-spacing: 3px; }
  .marca-texto span { font-size: 9.5px; letter-spacing: 1.5px; }
  .marca-texto em { font-size: 13px; }
}

/* Etiquetas y adornos */
.etiqueta {
  display: inline-block;
  color: var(--oro);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
/* Saludo grande con el nombre del alumno (páginas de gracias y bienvenidas tras pagar) */
.gracias-nombre {
  align-self: flex-start; margin: 0 0 4px;
  font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: 0.5px;
  font-size: clamp(42px, 9vw, 72px);
  background: linear-gradient(180deg, #fff3d1 0%, var(--oro-claro) 40%, var(--oro) 75%, var(--oro-osc) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(240, 212, 140, 0.35));
}
.gracias-nombre span { font-style: italic; }
.gracias-nombre::after {
  content: ""; display: block; width: 90px; height: 2px; margin-top: 14px;
  background: linear-gradient(90deg, var(--oro), transparent);
}
.centro > .gracias-nombre { align-self: center; }
.centro > .gracias-nombre::after { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--oro), transparent); }

.pastilla {
  display: inline-block;
  border: 1px solid var(--linea);
  background: rgba(212, 169, 79, 0.08);
  color: var(--oro-claro);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}
.filete { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--oro), transparent); margin: 4px auto; }
.lead { font-size: 20px; color: var(--gris); max-width: 680px; }

/* Héroe */
.heroe {
  position: relative;
  padding: 90px 0 100px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(240, 212, 140, 0.18), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(122, 18, 24, 0.35), transparent 70%),
    var(--negro);
  overflow: hidden;
}

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 34px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton-oro {
  background: linear-gradient(180deg, var(--oro-claro), var(--oro) 55%, var(--oro-osc));
  color: #1a1206;
  box-shadow: 0 10px 30px rgba(212, 169, 79, 0.25);
}
.boton-oro:hover { box-shadow: 0 14px 36px rgba(212, 169, 79, 0.4); }
.boton-borde { background: transparent; color: var(--oro-claro); border: 1px solid var(--oro); }
.boton-borde:hover { background: rgba(212, 169, 79, 0.1); }
.boton-wa { background: var(--verde-wa); color: #072b14; }
/* Botón secundario más pequeño (sustituye a los enlaces de texto) */
.boton-chico { min-height: 46px; padding: 10px 24px; font-size: 16px; }
.boton-discreto { background: transparent; color: var(--gris); border: 1px solid rgba(185, 173, 154, 0.35); font-weight: 600; }
.boton-discreto:hover { color: var(--crema); border-color: var(--gris); }
.botones-fila { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.botones-fila.izquierda { justify-content: flex-start; margin-top: 4px; }
.faq .botones-fila { margin-top: 12px; }
.boton svg { flex: none; }
.nota-boton { font-size: 15px; color: var(--gris); }

/* Tarjetas y rejillas */
.rejilla { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.rejilla-2 { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; }
.tarjeta {
  background: linear-gradient(180deg, var(--negro-3), var(--negro-2));
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.numero { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--oro); line-height: 1; }
.lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lista li { position: relative; padding-left: 34px; }
.lista li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--oro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1206' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.lista.no li::before {
  background: var(--granate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ecdd' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.portada { border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--linea); }
.portada-libro { max-width: 300px; margin: 0 auto; }

/* Elige tu camino */
.caminos { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 16px; }
.camino {
  text-decoration: none;
  color: var(--crema);
  border: 1px solid var(--linea);
  border-radius: 20px;
  overflow: hidden;
  background: var(--negro-2);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.camino:hover { transform: translateY(-4px); border-color: var(--oro); box-shadow: 0 20px 50px rgba(212, 169, 79, 0.15); }
.camino img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.camino .cuerpo { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.camino .boton { margin-top: auto; width: 100%; }
.camino .precio-mini { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--oro-claro); line-height: 1; }

/* Planes de masterclass */
.planes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: stretch; }
.plan .precio { font-size: 72px; }
.plan .mes { color: var(--gris); font-size: 18px; }
.plan .lista { flex: 1; font-size: 16px; }
.plan.destacado { border-color: var(--oro); box-shadow: 0 20px 50px rgba(212, 169, 79, 0.15); }
#paypal-suscripcion { background: #fff; border-radius: 12px; padding: 16px 16px 4px; }
#paypal-suscripcion.bloqueado { opacity: 0.35; pointer-events: none; filter: grayscale(1); }

/* Escalera de valor (camino-completo) */
.escalera { display: flex; flex-direction: column; gap: 22px; position: relative; }
.peldano {
  display: grid; grid-template-columns: 56px 180px 1fr; gap: 24px; align-items: center;
  background: linear-gradient(180deg, var(--negro-3), var(--negro-2));
  border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px;
}
.peldano img { width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.peldano-num {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--oro);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--oro-claro);
}
.peldano-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.peldano-pie .precio-mini { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--oro-claro); line-height: 1; }
.tabla-envoltorio { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; }
.tabla th, .tabla td { padding: 14px 12px; border-bottom: 1px solid var(--linea); text-align: center; }
.tabla th { font-family: var(--serif); font-size: 22px; color: var(--oro-claro); }
.tabla td:first-child, .tabla th:first-child { text-align: left; color: var(--gris); }

/* Pasos */
.pasos { display: flex; flex-direction: column; gap: 22px; }
.paso { display: flex; gap: 18px; align-items: flex-start; }
.paso > * { min-width: 0; }
.paso .circulo {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--oro); color: var(--oro-claro);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Fases (De voz a escenario) */
.fase { border-left: 2px solid var(--oro); padding: 4px 0 4px 24px; display: flex; flex-direction: column; gap: 8px; }
.fase .etiqueta { font-size: 12px; }

/* Precio y caja de reserva */
.caja-precio {
  background: radial-gradient(ellipse at top, rgba(240, 212, 140, 0.12), transparent 70%), var(--negro-3);
  border: 1px solid var(--oro);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.precio { font-family: var(--serif); font-size: 84px; font-weight: 700; color: var(--oro-claro); line-height: 1; }
.precio-antes { font-family: var(--serif); font-size: 32px; color: var(--gris); text-decoration: line-through; }
.datos-taller { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 17px; }
.datos-taller dt { color: var(--gris); }
.datos-taller dd { margin: 0; font-weight: 600; }

/* Formulario */
.formulario { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.formulario label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--gris); }
.formulario input[type="text"], .formulario input[type="email"], .formulario input[type="tel"] {
  font: inherit; color: var(--crema);
  background: var(--negro); border: 1px solid var(--linea); border-radius: 10px;
  padding: 14px 16px; min-height: 52px;
}
.formulario input:focus { outline: 2px solid var(--oro); outline-offset: 1px; border-color: var(--oro); }
.telefono-grupo { display: flex; gap: 8px; }
.telefono-grupo input { flex: 1; min-width: 0; }
.telefono-grupo select {
  flex: 0 0 auto; width: 140px; font: inherit; font-size: 15px; font-weight: 400; color: var(--crema);
  background: var(--negro); border: 1px solid var(--linea); border-radius: 10px; padding: 0 10px; min-height: 52px;
}
.telefono-grupo select:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(212, 169, 79, 0.15); }
@media (max-width: 480px) {
  .telefono-grupo { flex-direction: column; }
  .telefono-grupo select { width: 100%; }
}
.formulario .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; }
.formulario .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--oro); }
#paypal-botones { background: #fff; border-radius: 12px; padding: 16px 16px 4px; }
#paypal-botones.bloqueado { opacity: 0.35; pointer-events: none; filter: grayscale(1); }
.bump { border: 2px dashed var(--oro); border-radius: 12px; padding: 16px; background: rgba(212, 169, 79, 0.07); display: flex; flex-direction: column; gap: 12px; }
.bump .check { font-size: 16px; color: var(--crema); }
.bump .check input { width: 22px; height: 22px; }
.bump-cuerpo { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; font-size: 15px; color: var(--gris); }
.bump-cuerpo img { border-radius: 6px; }
.total { font-size: 20px; text-align: right; border-top: 1px solid var(--linea); padding-top: 10px; }
.total strong { font-family: var(--serif); font-size: 32px; color: var(--oro-claro); }
.mensaje-form { font-size: 15px; color: var(--oro-claro); min-height: 1.4em; }
.seguro { font-size: 14px; color: var(--gris); display: flex; gap: 8px; align-items: center; justify-content: center; }

/* Vídeo */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cita y testimonios */
.cita { font-family: var(--serif); font-size: 24px; font-style: italic; color: var(--crema); }
.cita-autor { color: var(--oro); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }

/* Preguntas frecuentes */
.faq details { border-bottom: 1px solid var(--linea); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--oro); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--gris); }

/* Regalos (gracias) */
.regalo { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; }
.regalo img { border-radius: 6px; }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding: 40px 0; font-size: 15px; color: var(--gris); }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.pie a { color: var(--gris); }
.pie nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Páginas legales */
.legal h2 { font-size: 30px; margin-top: 36px; margin-bottom: 10px; color: var(--oro-claro); }
.legal p, .legal li { color: var(--crema); margin-bottom: 12px; }
.pendiente { background: rgba(212, 169, 79, 0.15); color: var(--oro-claro); padding: 0 6px; border-radius: 4px; }

@media (max-width: 900px) and (min-width: 641px) {
  .peldano { grid-template-columns: 56px 1fr; }
  .peldano img { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .seccion { padding: 60px 0; }
  .heroe { padding: 60px 0 70px; }
  .boton { width: 100%; padding: 14px 22px; }
  .precio { font-size: 68px; }
  .regalo { grid-template-columns: 64px 1fr; padding: 18px; gap: 14px; }
  .regalo > * { min-width: 0; }
  .regalo .boton { font-size: 16px; padding: 12px 14px; }
  .paso { gap: 12px; }
  .peldano { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .peldano-num { width: 44px; height: 44px; font-size: 24px; }
  .peldano img { display: none; }
  .bump-cuerpo { grid-template-columns: 1fr; }
  .bump-cuerpo img { max-width: 220px; }
}

/* ───────────────────────────────────────────────────────────
   Acabado profesional y movimiento (lo activa app.js)
   ─────────────────────────────────────────────────────────── */
:root { --suave: cubic-bezier(0.22, 1, 0.36, 1); }
::selection { background: rgba(212, 169, 79, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; }
h1 { letter-spacing: -0.5px; }

/* Barra de progreso de lectura */
.barra-scroll {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: linear-gradient(90deg, var(--oro-osc), var(--oro-claro), var(--oro));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px rgba(240, 212, 140, 0.6);
  pointer-events: none;
}

/* Aviso con brillo que recorre la barra */
.aviso { position: relative; overflow: hidden; }
.aviso::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: barrido 5s ease-in-out infinite;
}

/* Cabecera fija con cristal */
.cabecera {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 9, 8, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.cabecera .contenedor { transition: padding 0.4s var(--suave); }
.cabecera.compacta { background: rgba(11, 9, 8, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.cabecera.compacta .contenedor { padding-top: 10px; padding-bottom: 10px; }
.marca b { transition: letter-spacing 0.5s var(--suave), text-shadow 0.4s ease; }
.marca:hover b { letter-spacing: 7px; text-shadow: 0 0 18px rgba(240, 212, 140, 0.45); }

/* Etiquetas con filete */
.etiqueta::before, .centro > .etiqueta::after {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: currentColor; vertical-align: middle; opacity: 0.7;
}
.etiqueta::before { margin-right: 12px; }
.centro > .etiqueta::after { margin-left: 12px; }

/* Héroe: focos de escenario, luz que sigue al ratón y polvo de oro */
.heroe > .contenedor { position: relative; z-index: 2; }
.heroe::before {
  content: ""; position: absolute; inset: -10% -20% 0; z-index: 0; pointer-events: none;
  background:
    conic-gradient(from 160deg at 28% -10%, transparent 0deg, rgba(240, 212, 140, 0.10) 12deg, transparent 26deg),
    conic-gradient(from 175deg at 72% -10%, transparent 0deg, rgba(240, 212, 140, 0.08) 14deg, transparent 30deg);
  transform-origin: 50% 0;
  animation: focos 12s ease-in-out infinite alternate;
}
.heroe::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 20%), rgba(240, 212, 140, 0.09), transparent 60%);
}
.destellos { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.destellos span {
  position: absolute; bottom: -10px;
  width: var(--tam, 2px); height: var(--tam, 2px); border-radius: 50%;
  background: var(--oro-claro);
  box-shadow: 0 0 8px 1px rgba(240, 212, 140, 0.7);
  opacity: 0;
  animation: subir linear infinite;
}
.heroe h1 .oro {
  background: linear-gradient(100deg, var(--oro) 20%, var(--oro-claro) 40%, #fff3cf 50%, var(--oro-claro) 60%, var(--oro) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: brillo 7s linear infinite;
}
.con-movimiento .heroe > .contenedor > *,
.con-movimiento .heroe > .contenedor > .pila > * { animation: entrar 0.9s var(--suave) both; }
.con-movimiento .heroe .contenedor > :nth-child(2) { animation-delay: 0.1s; }
.con-movimiento .heroe .contenedor > :nth-child(3) { animation-delay: 0.2s; }
.con-movimiento .heroe .contenedor > :nth-child(4) { animation-delay: 0.3s; }
.con-movimiento .heroe .contenedor > :nth-child(5) { animation-delay: 0.4s; }
.con-movimiento .heroe .contenedor > :nth-child(n+6) { animation-delay: 0.5s; }
.con-movimiento .heroe .filete { animation-name: crecer; }
.heroe .boton-oro { animation: latido 3.2s ease-in-out 1.4s infinite; }
.con-movimiento .heroe .contenedor > .boton-oro,
.con-movimiento .heroe .pila > .boton-oro { animation: entrar 0.9s var(--suave) 0.4s both, latido 3.2s ease-in-out 1.6s infinite; }

/* Héroe con retrato (inicio) */
@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.heroe-rejilla {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.heroe-texto { align-items: flex-start; text-align: left; }
.heroe-texto .filete { margin-left: 0; }
.retrato { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); perspective: 1200px; }
.retrato-halo {
  position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 212, 140, 0.32), rgba(212, 169, 79, 0.10) 55%, transparent 75%);
  filter: blur(10px);
  animation: halo 6s ease-in-out infinite;
}
.retrato-marco {
  position: relative; padding: 3px; border-radius: 18px;
  background: conic-gradient(from var(--giro), var(--oro-osc), var(--oro-claro), #fff3cf, var(--oro), var(--oro-osc), var(--oro-claro), var(--oro-osc));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(212, 169, 79, 0.25);
  animation: girar 8s linear infinite;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--suave);
}
.retrato-marco::before {
  /* viñeta teatral y fundido inferior hacia el negro */
  content: ""; position: absolute; inset: 3px; z-index: 2; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 70% at 50% 30%, transparent 45%, rgba(11, 9, 8, 0.55) 100%),
    linear-gradient(180deg, transparent 62%, rgba(11, 9, 8, 0.85) 100%);
}
.retrato-marco::after {
  /* destello de luz que cruza el retrato */
  content: ""; position: absolute; inset: 3px; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 243, 207, 0.28) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  animation: barrido 7s ease-in-out 2s infinite;
}
.retrato-marco img {
  width: 100%; aspect-ratio: 900 / 1386; object-fit: cover; border-radius: 15px;
  filter: sepia(0.18) saturate(1.1) contrast(1.05) brightness(0.92);
  animation: respirar 16s ease-in-out infinite alternate;
}
.retrato-marco { overflow: hidden; }
.retrato-sello {
  position: absolute; left: -34px; bottom: 56px; z-index: 4;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 22px; border-radius: 14px;
  background: rgba(15, 12, 10, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 169, 79, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  animation: flotar 5s ease-in-out infinite;
}
.retrato-sello span { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--oro); }
.retrato-sello b { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--oro-claro); }
.retrato-sello em { font-family: var(--serif); font-size: 17px; color: var(--gris); }
.con-movimiento .heroe > .contenedor > .heroe-texto { animation: none; }
.con-movimiento .heroe-texto > :nth-child(2) { animation-delay: 0.1s; }
.con-movimiento .heroe-texto > :nth-child(3) { animation-delay: 0.2s; }
.con-movimiento .heroe-texto > :nth-child(4) { animation-delay: 0.3s; }
.con-movimiento .heroe-texto > :nth-child(n+6) { animation-delay: 0.5s; }
.con-movimiento .heroe > .contenedor > .retrato { animation: aparecer-retrato 1.4s var(--suave) 0.2s both; }

@keyframes girar { to { --giro: 360deg; } }
@keyframes halo { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes respirar { from { transform: scale(1); } to { transform: scale(1.07) translateY(-1.5%); } }
@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes aparecer-retrato {
  from { opacity: 0; transform: translateY(40px) scale(0.94); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 900px) {
  .heroe-rejilla { grid-template-columns: 1fr; gap: 40px; }
  .retrato { order: -1; width: min(78%, 340px); }
  .heroe-texto { align-items: center; text-align: center; }
  .heroe-texto .filete { margin-left: auto; }
  .retrato-sello { left: -18px; bottom: 34px; padding: 10px 16px; }
  .retrato-sello b { font-size: 26px; }
}

/* Botones: destello al pasar, flecha que avanza, pulsación */
.boton { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.3s var(--suave), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.boton::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s var(--suave);
  pointer-events: none;
}
.boton:hover::after, .camino:hover .boton::after { left: 130%; }
.boton-borde::after { background: linear-gradient(100deg, transparent, rgba(240, 212, 140, 0.25), transparent); }
.boton:hover { transform: translateY(-3px); }
.boton:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.boton svg { transition: transform 0.3s var(--suave); }
.boton:hover svg:last-child:not(:first-child) { transform: translateX(5px); }
.boton-wa:hover { box-shadow: 0 14px 34px rgba(37, 211, 102, 0.3); }
.boton-borde:hover { border-color: var(--oro-claro); box-shadow: 0 0 0 4px rgba(212, 169, 79, 0.1); }

/* Tarjetas: elevación, borde dorado y luz que sigue al ratón */
.tarjeta, .camino, .peldano { position: relative; isolation: isolate; }
.tarjeta, .peldano { transition: transform 0.45s var(--suave), border-color 0.4s ease, box-shadow 0.45s ease; }
.tarjeta::after, .camino::after, .peldano::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 212, 140, 0.10), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease;
}
.tarjeta:hover::after, .camino:hover::after, .peldano:hover::after { opacity: 1; }
.tarjeta:not(:has(form, input, iframe)):hover, .peldano:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 169, 79, 0.6);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 169, 79, 0.15) inset;
}
.numero {
  background: linear-gradient(180deg, var(--oro-claro), var(--oro-osc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; align-self: flex-start; transition: transform 0.45s var(--suave);
}
.tarjeta:hover .numero { transform: scale(1.12) rotate(-4deg); }
.peldano-num, .paso .circulo { transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--suave); }
.peldano:hover .peldano-num, .paso:hover .circulo {
  background: var(--oro); color: #1a1206; transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(212, 169, 79, 0.12), 0 0 24px rgba(240, 212, 140, 0.35);
}
.peldano img { transition: transform 0.6s var(--suave); }
.peldano:hover img { transform: scale(1.04); }

/* Elige tu camino: inclinación 3D sutil e imagen con zoom */
.camino {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--suave), border-color 0.3s ease, box-shadow 0.4s ease;
}
.camino:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.camino img { transition: transform 0.9s var(--suave), filter 0.6s ease; filter: saturate(0.92); }
.camino:hover img { transform: scale(1.06); filter: saturate(1.08); }

/* Imágenes destacadas */
.portada { transition: transform 0.7s var(--suave), box-shadow 0.6s ease; }
.portada:hover { transform: scale(1.015); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 169, 79, 0.5), 0 0 40px rgba(212, 169, 79, 0.12); }

/* Caja de precio con borde que respira */
.caja-precio { position: relative; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); animation: aura 5s ease-in-out infinite; }
.precio { text-shadow: 0 0 30px rgba(240, 212, 140, 0.25); }

/* Formularios */
.formulario input[type="text"], .formulario input[type="email"], .formulario input[type="tel"] {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.formulario input:hover { border-color: rgba(212, 169, 79, 0.5); }
.formulario input:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(212, 169, 79, 0.15); background: #0f0c0a; }
.bump { transition: background 0.3s ease, border-color 0.3s ease; }
.bump:has(input:checked) { background: rgba(212, 169, 79, 0.14); border-style: solid; }

/* Preguntas frecuentes */
.faq summary { transition: color 0.3s ease; }
.faq summary:hover { color: var(--oro-claro); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { transition: transform 0.4s var(--suave); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq details[open] p { animation: desplegar 0.5s var(--suave) both; }

/* Secciones oscuras con filete dorado */
.seccion.oscura { position: relative; }
.seccion.oscura::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(600px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(212, 169, 79, 0.5), transparent);
}

/* Enlaces del pie */
.pie a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--suave), color 0.3s ease; }
.pie a:hover { color: var(--oro-claro); background-size: 100% 1px; }

/* Revelado al hacer scroll (usa translate/scale para no pisar los transform del hover) */
.con-movimiento .revelar {
  opacity: 0; translate: 0 28px;
  transition: opacity 0.9s var(--suave) var(--retraso, 0ms), translate 0.9s var(--suave) var(--retraso, 0ms);
}
.con-movimiento .revelar.visible { opacity: 1; translate: none; }
.con-movimiento .lista li.revelar { translate: -18px 0; }
.con-movimiento .lista li.revelar.visible { translate: none; }
.con-movimiento .lista li.revelar::before { scale: 0; transition: scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--retraso, 0ms) + 0.25s); }
.con-movimiento .lista li.revelar.visible::before { scale: 1; }
.con-movimiento .portada.revelar { translate: none; scale: 0.95; transition: opacity 1.1s var(--suave), scale 1.1s var(--suave), transform 0.7s var(--suave), box-shadow 0.6s ease; }
.con-movimiento .portada.revelar.visible { scale: 1; }
.con-movimiento .tarjeta.revelar, .con-movimiento .peldano.revelar {
  transition: opacity 0.9s var(--suave) var(--retraso, 0ms), translate 0.9s var(--suave) var(--retraso, 0ms),
    transform 0.45s var(--suave), border-color 0.4s ease, box-shadow 0.45s ease;
}
.con-movimiento .camino.revelar {
  transition: opacity 0.9s var(--suave) var(--retraso, 0ms), translate 0.9s var(--suave) var(--retraso, 0ms),
    transform 0.5s var(--suave), border-color 0.3s ease, box-shadow 0.4s ease;
}
.con-movimiento .boton.revelar {
  transition: opacity 0.9s var(--suave) var(--retraso, 0ms), translate 0.9s var(--suave) var(--retraso, 0ms),
    transform 0.3s var(--suave), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@keyframes entrar { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes crecer { from { opacity: 0; width: 0; } to { opacity: 1; width: 90px; } }
@keyframes brillo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes barrido { 0%, 30% { background-position: 150% 0; } 70%, 100% { background-position: -100% 0; } }
@keyframes focos { from { transform: rotate(-4deg); opacity: 0.7; } to { transform: rotate(4deg); opacity: 1; } }
@keyframes subir {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.5; }
  100% { transform: translate(var(--deriva, 0px), -900px); opacity: 0; }
}
@keyframes latido {
  0%, 100% { box-shadow: 0 10px 30px rgba(212, 169, 79, 0.25), 0 0 0 0 rgba(240, 212, 140, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(212, 169, 79, 0.3), 0 0 0 12px rgba(240, 212, 140, 0); }
}
@keyframes aura {
  0%, 100% { border-color: rgba(212, 169, 79, 0.75); }
  50% { border-color: var(--oro-claro); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 34px rgba(212, 169, 79, 0.16); }
}
@keyframes desplegar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (hover: none) {
  .camino, .camino:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .destellos { display: none; }
}
