/* OMG Pets Memories · el ambiente de siempre: cielo, nubes, estrellas, dorado y el botón mágico */
:root {
  --celeste: #38bdf8;
  --naranja: #ff8a00;
  --rosa: #ff5277;
  --oro: #ffd166;
  --oro-claro: #ffe599;
  --coral: #ff8a5b;
  --fucsia: #ff4e88;
  --tinta: #ffffff;
  --suave: rgba(255, 255, 255, .78);
  --tenue: rgba(255, 255, 255, .55);
  --vidrio: rgba(12, 22, 48, .55);
  --borde: rgba(255, 255, 255, .18);
  --ok: #34d399;
  --titulo: 'Outfit', system-ui, sans-serif;
  --texto: 'Nunito', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texto); color: var(--tinta); background: #0f1b3d; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.bloqueado { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--oro); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.centro { text-align: center; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 900; margin: 0; line-height: 1.08; }
.dorado { background: linear-gradient(to right, #ffd700, var(--naranja)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.12em; color: var(--oro-claro); text-shadow: 0 0 16px rgba(255, 209, 102, .55); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ── el cielo ── */
.cielo { position: fixed; inset: 0; z-index: -3; background: linear-gradient(180deg, #0f1b3d 0%, #1e3a8a 25%, #0c4a6e 55%, #164e63 80%, #0f2942 100%); }
.nubes { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.nube { position: absolute; left: -50%; fill: #fff; opacity: .12; filter: blur(8px); animation: nubes linear infinite; }
.n1 { top: 10%; width: 200px; animation-duration: 50s; }
.n2 { top: 45%; width: 280px; animation-duration: 65s; animation-delay: -15s; opacity: .08; }
.n3 { bottom: 10%; width: 350px; animation-duration: 80s; filter: blur(14px); opacity: .15; }
@keyframes nubes { from { transform: translateX(0); } to { transform: translateX(150vw); } }
.estrellas { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.estrella { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .8); animation: titilar ease-in-out infinite; }
@keyframes titilar { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px 4px rgba(255, 215, 0, .9); } }

/* ── barra ── */
.barra { position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(15, 23, 42, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.marca { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; text-align: center; }
.huella { font-size: 20px; filter: drop-shadow(0 0 6px rgba(255, 200, 50, .5)); }
.marca b { display: block; font-family: var(--titulo); font-size: 16px; font-weight: 900; line-height: 1; }
.marca small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .25em; color: #fcd34d; }

/* ── el botón mágico (el de siempre) ── */
.btn-magico {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 340px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 22px; padding: 16px 20px; cursor: pointer;
  font-family: var(--texto); font-weight: 900; font-size: 17px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--naranja) 0%, var(--rosa) 100%);
  box-shadow: 0 8px 25px rgba(255, 82, 119, .5); animation: latido 3s infinite;
}
.btn-magico:active { transform: scale(.95); }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); box-shadow: 0 12px 30px rgba(255, 82, 119, .7); } }
.destello { position: absolute; top: 0; left: -100%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); animation: destello 4s infinite; }
@keyframes destello { 0%, 50% { left: -100%; } 100% { left: 200%; } }
.btn-magico:focus-visible, .cta:focus-visible, .btn-icono:focus-visible, .enlace:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }

/* ── 1 · video ── */
main { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 22px 0 30px; }
.hero h1 { font-size: clamp(30px, 9vw, 40px); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.marco { width: min(84%, 340px); border-radius: 30px; padding: 2px; background: linear-gradient(145deg, rgba(56, 189, 248, .6), rgba(255, 209, 102, .5), rgba(244, 114, 182, .45)); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.marco-dentro { border-radius: 28px; padding: 8px; background: linear-gradient(165deg, rgba(10, 18, 42, .95), rgba(15, 28, 55, .92)); }
.pantalla { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #050b1c; }
.pantalla video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; background: linear-gradient(180deg, rgba(8, 15, 35, .1), rgba(8, 15, 35, .5)); }
.play-circulo { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--naranja), var(--rosa)); box-shadow: 0 0 0 12px rgba(255, 138, 0, .18), 0 0 0 24px rgba(255, 82, 119, .08), 0 10px 30px rgba(255, 82, 119, .5); animation: latido 2.4s infinite; }
.play-circulo svg { width: 38px; height: 38px; fill: #fff; margin-left: 5px; }
.play-texto { font-family: var(--titulo); font-weight: 900; font-size: 19px; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.sin-fotos { color: #fde68a; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(251, 191, 36, .5); }
.sellos { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sellos li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.sellos span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }

/* ── 2 · las ramas ── */
.ramas-sec { padding: 26px 0 10px; text-align: center; }
.ramas-sec h2, .testimonios-sec h2 { font-size: clamp(28px, 8vw, 36px); text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.pista { color: var(--tenue); font-size: 13px; font-weight: 700; margin: 6px 0 0; }
.ramas { display: block; width: 100%; height: 56px; margin: 6px 0 -2px; overflow: visible; }
.ramas path { fill: none; stroke: url(#rama); stroke-width: 2.5; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: fluir 1.2s linear infinite; }
.ramas circle { fill: var(--oro); filter: drop-shadow(0 0 6px var(--oro)); }
@keyframes fluir { to { stroke-dashoffset: -12; } }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rama {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 2px; text-align: left;
  background: linear-gradient(160deg, rgba(56, 189, 248, .5), rgba(255, 255, 255, .08) 45%, rgba(255, 209, 102, .4));
  transition: transform .25s, box-shadow .25s;
}
.rama.sonando { transform: translateY(-3px); box-shadow: 0 0 26px rgba(255, 209, 102, .45); background: linear-gradient(160deg, #ffd166, rgba(255, 255, 255, .1) 45%, #ff8a5b); }
.rama-dentro { flex: 1; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(10, 18, 42, .95), rgba(15, 28, 55, .92)); }
.rama-tipo { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; color: #2a1505; background: linear-gradient(90deg, var(--oro), var(--coral)); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.rama-video { position: relative; aspect-ratio: 9 / 14; background: #050b1c; cursor: pointer; border: 0; padding: 0; width: 100%; }
.rama-video video { width: 100%; height: 100%; object-fit: cover; }
.rama-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 15, 35, .55); border: 2px solid rgba(255, 255, 255, .7); backdrop-filter: blur(4px); transition: opacity .2s; }
.rama-play svg { width: 24px; fill: #fff; margin-left: 3px; }
.rama.sonando .rama-play { opacity: 0; }
.rama-sonido { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 900; padding: 5px 10px; border-radius: 999px; background: rgba(8, 15, 35, .7); border: 1px solid rgba(255, 255, 255, .25); }
.rama-info { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rama-info h3 { font-size: 17px; line-height: 1.1; }
.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--suave); }
.datos li { display: flex; gap: 6px; align-items: flex-start; }
.precio { font-family: var(--titulo); font-weight: 900; font-size: 24px; color: var(--oro-claro); margin-top: auto; }
.precio small { font-family: var(--texto); font-size: 10px; color: var(--tenue); margin-left: 2px; }
.rama-elegir { border: 0; border-radius: 14px; padding: 11px; cursor: pointer; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--coral), var(--fucsia)); box-shadow: 0 6px 16px rgba(255, 78, 136, .35); }
.especial { margin-top: 14px; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 20px; border: 1.5px solid rgba(255, 209, 102, .55); background: linear-gradient(90deg, rgba(255, 209, 102, .16), rgba(244, 114, 182, .18)); }
.especial video, .especial .mini { width: 70px; height: 100px; flex: none; border-radius: 12px; object-fit: cover; background: #050b1c; display: grid; place-items: center; font-size: 28px; }
.especial b { display: block; font-family: var(--titulo); font-size: 17px; }
.especial span { font-size: 12.5px; color: var(--suave); font-weight: 700; }
.especial .rama-elegir { margin-left: auto; flex: none; }

/* ── 3 · testimonios (uno a la vez, ordenado) ── */
.testimonios-sec { padding: 34px 0 10px; text-align: center; }
.testimonio { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.testimonio-marco { flex: 1; aspect-ratio: 9 / 13; max-height: 460px; border-radius: 22px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .18); background: #0d1631; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); cursor: zoom-in; }
.testimonio-marco img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .3s; }
.flecha { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--borde); background: rgba(255, 255, 255, .1); font-size: 24px; line-height: 1; cursor: pointer; }
.puntos { display: flex; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.puntos i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.puntos i.activo { background: var(--oro); width: 18px; border-radius: 99px; }
.final { display: flex; justify-content: center; padding: 30px 0 20px; }
.pie { text-align: center; color: var(--tenue); font-size: 13px; padding: 10px 16px 110px; }
.pie a { color: var(--suave); }
.pie p { margin: 6px 0 0; }
.enlace { background: none; border: 0; padding: 0; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.fijo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 12px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(15, 27, 61, .9) 45%); }
.visor, .legal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 23, .92); backdrop-filter: blur(12px); }
.visor { cursor: zoom-out; }
.visor img { max-height: 88vh; border-radius: 16px; }

/* ══ el pedido (como el asistente de siempre) ══ */
.pedido { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: linear-gradient(180deg, #0f1b3d 0%, #1e3a8a 40%, #0c4a6e 100%); }
.pedido-arriba { display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.btn-icono { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--borde); background: rgba(255, 255, 255, .1); cursor: pointer; font-size: 18px; }
.progreso { flex: 1; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.progreso-barra { height: 100%; width: 10%; border-radius: 99px; background: linear-gradient(90deg, #ffd166, #ff8a5b, #ff4e88); box-shadow: 0 0 10px rgba(255, 209, 102, .8); transition: width .4s cubic-bezier(.22, 1, .36, 1); }
.pedido-cuerpo { flex: 1; overflow-y: auto; width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 20px 24px; -webkit-overflow-scrolling: touch; }
.pedido-abajo { width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.paso { display: none; animation: entrar .35s cubic-bezier(.2, .85, .35, 1); }
.paso.activo { display: block; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.paso h3 { font-size: clamp(28px, 8vw, 36px); margin-bottom: 10px; }
.paso-ayuda { color: var(--suave); font-weight: 700; margin: 0 0 16px; }
.cta { display: flex; align-items: center; justify-content: center; width: 100%; border: 0; border-radius: 18px; padding: 17px; cursor: pointer; font-weight: 900; font-size: 16px; letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, #ff8a5b 0%, #ff4e88 100%); box-shadow: 0 8px 22px rgba(255, 78, 136, .4), inset 0 1px 1px rgba(255, 255, 255, .4); }
.cta:disabled { opacity: .42; filter: grayscale(.4); cursor: not-allowed; box-shadow: none; }
.btn-suave { display: inline-flex; padding: 13px 22px; border-radius: 16px; border: 1px solid var(--borde); background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; text-decoration: none; }
.elegir-lista { display: grid; gap: 12px; margin-top: 16px; }
.elegir { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer; padding: 12px; border-radius: 18px; background: var(--vidrio); border: 2px solid rgba(255, 255, 255, .22); }
.elegir.activo { border-color: var(--oro); box-shadow: 0 0 22px rgba(255, 209, 102, .45); }
.elegir video, .elegir .mini { width: 60px; height: 90px; flex: none; border-radius: 12px; object-fit: cover; background: #050b1c; display: grid; place-items: center; font-size: 24px; }
.elegir strong { display: block; font-family: var(--titulo); font-size: 18px; }
.elegir span { color: var(--suave); font-size: 13px; font-weight: 700; }
.elegir .precio { margin: 0 0 0 auto; font-size: 20px; }
.subir { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 20px; cursor: pointer; border: 2px dashed rgba(255, 209, 102, .6); background: rgba(255, 209, 102, .08); }
.subir input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.subir:focus-within { outline: 3px solid var(--oro); outline-offset: 2px; }
.subir-icono { font-size: 30px; }
.subir strong { display: block; font-size: 17px; }
.subir small { color: var(--suave); font-weight: 700; }
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.foto { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .3); border: 2px solid rgba(52, 211, 153, .6); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .estado { position: absolute; inset: auto 0 0 0; height: 5px; background: rgba(0, 0, 0, .4); }
.foto .estado i { display: block; height: 100%; width: 0; background: var(--oro); transition: width .2s; }
.foto.lista .estado { display: none; }
.foto.lista::after { content: '✓'; position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: var(--ok); color: #053321; }
.foto.fallo { border-color: #f87171; }
.foto.fallo::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(120, 20, 20, .55); font-weight: 900; font-size: 26px; }
.foto .quitar { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.campo { display: block; margin-bottom: 16px; }
.campo > span { display: block; font-weight: 900; margin-bottom: 7px; }
.campo small { color: var(--tenue); }
input, textarea, select { width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: rgba(12, 22, 48, .52); border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 14px; outline: none; }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .45); }
input:focus, textarea:focus, select:focus { border-color: var(--oro); box-shadow: 0 0 12px rgba(255, 209, 102, .25); background: rgba(16, 29, 62, .78); }
textarea { resize: vertical; min-height: 110px; }
.tel { display: flex; gap: 8px; }
.tel select { width: 118px; flex: none; }
select option { color: #111; }
.resumen { background: var(--vidrio); border: 1px solid var(--borde); border-radius: 18px; padding: 16px; display: grid; gap: 8px; margin: 14px 0; }
.resumen .fila { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; }
.resumen .fila span:first-child { color: var(--suave); }
.resumen .fila span:last-child { text-align: right; }
.resumen .total { border-top: 1px solid var(--borde); padding-top: 10px; margin-top: 4px; font-size: 17px; }
.resumen .total span:last-child { font-family: var(--titulo); font-weight: 900; font-size: 24px; color: var(--oro-claro); }
.resumen .mini-fotos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.resumen .mini-fotos img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 2px solid rgba(52, 211, 153, .7); }
.tranquilo { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.whop { margin: 10px 0 14px; border-radius: 16px; overflow: hidden; background: #fff; min-height: 120px; }
.prueba { margin-top: 10px; width: 100%; padding: 14px; border-radius: 14px; border: 1px dashed var(--oro); color: var(--oro); background: transparent; cursor: pointer; font-weight: 900; }
.listo { text-align: center; padding: 30px 0; display: grid; gap: 14px; justify-items: center; }
.listo-icono { font-size: 50px; margin: 0; }
.listo p { color: var(--suave); margin: 0; font-weight: 700; }
.pedido-num { color: var(--oro-claro) !important; letter-spacing: .08em; }
.aviso { color: var(--oro-claro); font-weight: 800; font-size: 14px; }
.error { color: #ffd2cc; background: rgba(255, 100, 90, .14); border: 1px solid rgba(255, 140, 120, .35); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.legal-caja { position: relative; max-width: 560px; max-height: 85vh; overflow-y: auto; background: #12234f; border: 1px solid var(--borde); border-radius: 20px; padding: 28px 22px; }
.legal-caja h3 { font-size: 26px; margin-bottom: 6px; }
.legal-caja h4 { margin: 14px 0 4px; }
.legal-caja p { color: var(--suave); margin: 0; }
.legal-cerrar { position: absolute; top: 10px; right: 10px; }
