/* ───────── Fuentes (alojadas en el propio sitio) ───────── */
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fuentes/marcellus.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fuentes/marcellus-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 300 500; font-display: swap; src: url("../fuentes/karla.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 300 500; font-display: swap; src: url("../fuentes/karla-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fuentes/cormorant.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fuentes/cormorant-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url("../fuentes/cormorant-italica.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url("../fuentes/cormorant-italica-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ───────── Base ───────── */
:root {
  --burdeos: #4E1A26;
  --burdeos-medio: #7A2B3B;
  --burdeos-oscuro: #3F141E;
  --dorado: #C9A063;
  --crema: #F5EDE3;
  --arena: #EDE1D3;
  --tinta: #2E1418;
  --lado: clamp(20px, 5vw, 72px);
  --titulo: 'Marcellus', Georgia, serif;
  --cursiva: 'Cormorant Garamond', Georgia, serif;
  --cuerpo: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.con-sobre { overflow: hidden; }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: var(--cuerpo); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burdeos-medio); text-decoration: none; }
a:hover { color: var(--burdeos); }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 4px; font-size: 15px; font-weight: 500; text-align: center; transition: filter .2s; }
.boton:hover { filter: brightness(1.06); }
.boton--dorado { background: var(--dorado); color: var(--burdeos); }
.boton--dorado:hover { color: var(--burdeos); }
.boton--burdeos { background: var(--burdeos); color: var(--crema); }
.boton--burdeos:hover { color: var(--crema); }
.boton--pildora { background: #B4865F; color: #fff; border-radius: 30px; min-height: 44px; padding: 10px 22px; font-size: 13px; font-weight: 400; }
.boton--pildora:hover { color: #fff; }
.boton--grande { min-height: 56px; padding: 16px 34px; font-size: 16px; font-weight: 400; }

/* ───────── Sobre de apertura (se abre solo) ───────── */
.sobre { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; background: var(--burdeos-oscuro); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; animation: sobre-fuera .9s ease 3.4s forwards; }
html.sin-sobre .sobre { display: none; }
.sobre--saltar { animation: sobre-fuera .35s ease forwards; }
.sobre__env { position: relative; width: min(520px, 84vw); aspect-ratio: 520 / 340; margin-top: min(16vh, 120px); perspective: 1400px; animation: sobre-acerca 1.1s cubic-bezier(.6, 0, .3, 1) 3.4s forwards; }
.sobre__dentro { position: absolute; inset: 0; background: #2E0D15; border-radius: 6px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55); }
.sobre__tarjeta { position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; z-index: 2; background: var(--crema); border-radius: 3px; display: flex; flex-direction: column; align-items: center; padding-top: 9%; gap: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); animation: sobre-tarjeta 1.3s cubic-bezier(.3, .7, .2, 1) 1.8s forwards; }
.sobre__tarjeta img { width: 72%; }
.sobre__linea { width: 40px; height: 1px; background: var(--burdeos); opacity: .5; }
.sobre__lema { font-family: var(--titulo); font-style: italic; font-size: clamp(14px, 2.4vw, 19px); color: var(--burdeos); }
.sobre__lado { position: absolute; inset: 0; z-index: 3; border-radius: 6px; }
.sobre__lado--izq { background: #551E2B; clip-path: polygon(0 0, 50% 56%, 0 100%); }
.sobre__lado--der { background: #551E2B; clip-path: polygon(100% 0, 50% 56%, 100% 100%); }
.sobre__lado--frente { background: #5E2230; clip-path: polygon(0 100%, 50% 50%, 100% 100%); }
.sobre__solapa { position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 4; background: #6B2837; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; border-radius: 6px 6px 0 0; animation: sobre-solapa .8s cubic-bezier(.5, 0, .3, 1) 1.05s forwards, sobre-solapa-atras .01s linear 1.8s forwards; }
.sobre__sello { position: absolute; left: 50%; top: 62%; width: clamp(64px, 17%, 92px); aspect-ratio: 1; z-index: 6; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 45%), var(--dorado); box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 -4px 8px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); animation: sobre-sello .45s ease .7s forwards; }
.sobre__sello span { width: 76%; height: 76%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; font-family: var(--cursiva); font-size: clamp(26px, 5vw, 40px); color: var(--burdeos); line-height: 1; }

@keyframes sobre-sello { to { transform: translate(-50%, -50%) scale(1.6) rotate(-20deg); opacity: 0; } }
@keyframes sobre-solapa { to { transform: rotateX(180deg); } }
@keyframes sobre-solapa-atras { to { z-index: 1; } }
@keyframes sobre-tarjeta { to { transform: translateY(-52%); } }
@keyframes sobre-acerca { to { transform: translateY(6%) scale(1.12); } }
@keyframes sobre-fuera { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ───────── Cabecera y portada ───────── */
.cabecera { background: var(--burdeos); color: var(--crema); overflow: hidden; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px var(--lado); padding-top: max(22px, env(safe-area-inset-top)); }
.nav__enlaces { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 13px; }
.nav__enlaces a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.nav__logo img { width: clamp(150px, 18vw, 210px); }
.nav__cta { display: flex; justify-content: flex-end; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; padding: clamp(30px, 5vw, 60px) var(--lado) clamp(60px, 8vw, 100px); }
.hero__texto { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.etiqueta { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--dorado); }
h1 { font-size: clamp(38px, 5.4vw, 80px); line-height: 1.04; text-wrap: balance; }
h1 em { font-family: var(--cursiva); font-style: italic; color: var(--dorado); }
.hero__sub { font-size: 17px; line-height: 1.6; max-width: 460px; opacity: .85; }
.hero__eventos { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha { min-height: 44px; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--dorado); background: transparent; color: var(--crema); font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.ficha[aria-pressed="true"] { background: var(--dorado); color: var(--burdeos); }
.hero__acciones { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.enlace-wa { color: var(--crema); padding: 14px 4px; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.enlace-wa:hover { color: #fff; }

.hero__demo { display: flex; justify-content: center; position: relative; }
.hero__demo::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(201, 160, 99, .35); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.telefono { position: relative; width: 300px; max-width: 100%; height: 610px; border-radius: 46px; background: #16120F; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); flex-shrink: 0; }
.telefono__pantalla { --fondo: #FBF6EF; --texto: #4E1A26; --acento: #C9A063; position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--fondo); color: var(--texto); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 54px 26px 26px; gap: 16px; transition: background .4s, color .4s; }
.telefono__isla { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 14px; background: #16120F; }
.telefono__marco { position: absolute; inset: 14px; border: 1px solid var(--acento); border-radius: 26px; opacity: .45; pointer-events: none; }
.telefono__etiqueta { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--acento); }
.telefono__nombres { font-family: var(--cursiva); font-style: italic; font-size: 44px; line-height: 1; text-wrap: balance; }
.telefono__linea { width: 36px; height: 1px; background: var(--acento); }
.telefono__datos { font-size: 13px; line-height: 1.5; opacity: .85; }
.cuenta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin-top: 6px; }
.cuenta__u { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border: 1px solid var(--acento); border-radius: 10px; }
.cuenta__u b { font-family: var(--cursiva); font-weight: 400; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.cuenta__u span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.telefono__espacio { flex: 1; }
.telefono__nota { font-size: 12px; opacity: .75; }
.telefono__boton { position: relative; width: 100%; min-height: 48px; border: none; border-radius: 24px; background: var(--acento); color: #fff; font-size: 14px; letter-spacing: .06em; transition: background .3s; }
.telefono__boton[aria-pressed="true"] { background: var(--texto); color: var(--fondo); }

/* ───────── Secciones ───────── */
.seccion { padding: clamp(64px, 9vw, 120px) var(--lado); }
.seccion--arena { background: var(--arena); }
.seccion--burdeos { background: var(--burdeos); color: var(--crema); }
.seccion--sin-lados { padding-left: 0; padding-right: 0; }
.con-lados { padding: 0 var(--lado); }
.seccion h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; color: var(--burdeos); margin-bottom: 44px; }
.seccion--burdeos h2 { color: var(--crema); }
.centrado { text-align: center; }

/* Catálogo de plantillas */
.catalogo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.catalogo__lado { flex: 1 1 220px; max-width: 280px; position: sticky; top: 20px; }
.catalogo__lado h2 { font-size: clamp(34px, 3.6vw, 50px); margin-bottom: 20px; }
.catalogo__filtros { display: flex; flex-direction: column; gap: 6px; }
.filtro { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; text-align: left; font-size: 15px; padding: 10px 14px; border: none; border-radius: 4px; background: transparent; color: var(--burdeos); white-space: nowrap; }
.filtro small { font-size: 12px; opacity: .7; }
.filtro[aria-pressed="true"] { background: var(--burdeos); color: var(--crema); }
.catalogo__rejilla { flex: 999 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.tarjeta { background: var(--crema); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .3s; }
.tarjeta:hover { box-shadow: 0 20px 40px -24px rgba(78, 26, 38, .5); }
.tarjeta__vista { aspect-ratio: 3 / 4; background: var(--fondo); color: var(--texto); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; outline: 1px solid var(--acento); outline-offset: -10px; }
.tarjeta__etiqueta { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--acento); }
.tarjeta__nombres { font-family: var(--cursiva); font-style: italic; font-size: 30px; line-height: 1.05; overflow-wrap: anywhere; }
.tarjeta__fecha { font-size: 11px; letter-spacing: .16em; }
.tarjeta__pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px 4px; }
.tarjeta__nombre { font-family: var(--titulo); font-size: 19px; color: var(--burdeos); }
.tarjeta__acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.tarjeta__boton { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; font-size: 12px; border: 1px solid var(--burdeos); background: none; color: var(--burdeos); border-radius: 4px; padding: 6px 10px; }
.tarjeta__boton--lleno { background: var(--burdeos); color: var(--crema); }
.tarjeta__boton--lleno:hover { color: var(--crema); }

/* Cómo funciona */
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.paso { background: #fff; border-radius: 6px; padding: 34px 28px; display: flex; flex-direction: column; gap: 12px; }
.paso__n { font-family: var(--titulo); font-size: 44px; color: var(--dorado); line-height: 1; }
.paso h3 { font-size: 22px; color: var(--burdeos); }
.paso p { font-size: 15px; line-height: 1.6; }

/* Paquetes */
.paquetes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; align-items: center; }
.paquete { border: 1px solid rgba(201, 160, 99, .4); border-radius: 8px; padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.paquete--destacado { background: var(--crema); color: var(--tinta); padding: 44px 30px; }
.paquete__cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.paquete h3 { font-size: 24px; }
.paquete__tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--burdeos-medio); }
.paquete__precio { font-family: var(--titulo); font-size: 48px; line-height: 1; }
.paquete ul { display: flex; flex-direction: column; gap: 14px; }
.paquete li { font-size: 14px; display: flex; gap: 10px; }
.paquete li::before { content: "✦"; color: var(--dorado); }
.paquete .boton { margin-top: 10px; font-size: 14px; }

/* Contacto */
.contacto { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.contacto h2 { font-size: clamp(34px, 4.4vw, 62px); max-width: 640px; margin-bottom: 0; text-wrap: balance; }

/* Testimonios */
.testimonios { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--lado) 16px; scroll-snap-type: x mandatory; scroll-padding-left: var(--lado); -webkit-overflow-scrolling: touch; }
.testimonio { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; background: #fff; border-radius: 8px; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.estrellas { color: var(--dorado); letter-spacing: 4px; }
.testimonio blockquote { font-family: var(--cursiva); font-size: 22px; line-height: 1.4; }
.testimonio figcaption { margin-top: auto; font-size: 13px; color: var(--burdeos-medio); }

/* Pie */
.pie { background: var(--burdeos-oscuro); padding: 34px var(--lado) max(40px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; color: #D9C2A0; }
.pie img { width: 170px; }

/* ───────── Teléfono ───────── */
@media (max-width: 860px) {
  .catalogo { display: block; }
  .catalogo__lado { position: static; max-width: none; margin-bottom: 20px; }
  .catalogo__filtros { flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--lado)); padding: 2px var(--lado) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .catalogo__filtros::-webkit-scrollbar { display: none; }
  .filtro { flex: 0 0 auto; border: 1px solid rgba(78, 26, 38, .35); border-radius: 22px; padding: 8px 16px; }
}
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; grid-template-areas: "logo cta" "enlaces enlaces"; gap: 10px 16px; padding-bottom: 10px; }
  .nav__logo { grid-area: logo; }
  .nav__cta { grid-area: cta; }
  .nav__enlaces { grid-area: enlaces; justify-content: center; gap: 0 28px; border-top: 1px solid rgba(201, 160, 99, .25); padding-top: 4px; font-size: 14px; }
  .hero { gap: 40px; }
  .hero__texto { gap: 22px; }
  .hero__acciones .boton { flex: 1 1 100%; }
  .hero__acciones .enlace-wa { flex: 1 1 100%; text-align: center; }
  .hero__demo::before { width: 330px; height: 330px; }
  .catalogo__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tarjeta { padding: 8px; gap: 10px; }
  .tarjeta__vista { padding: 16px 12px; outline-offset: -7px; }
  .tarjeta__etiqueta { font-size: 9px; letter-spacing: .22em; }
  .tarjeta__nombres { font-size: 24px; }
  .tarjeta__fecha { font-size: 10px; letter-spacing: .1em; }
  .tarjeta__nombre { font-size: 17px; flex: 1 1 100%; }
  .tarjeta__acciones { flex: 1 1 100%; }
  .tarjeta__boton { flex: 1 1 auto; min-height: 40px; }
  .seccion h2 { margin-bottom: 32px; }
  .paquete--destacado { padding: 34px 30px; }
  .contacto .boton { width: 100%; }
  .testimonio { padding: 24px; }
  .testimonio blockquote { font-size: 20px; }
  .pie { justify-content: center; text-align: center; flex-direction: column; }
}

/* ───────── Menos movimiento ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sobre { animation: sobre-fuera .6s ease 1.4s forwards; }
  .sobre__env, .sobre__tarjeta, .sobre__solapa, .sobre__sello { animation: none; }
  * { transition-duration: .01ms !important; }
}
