/* Multimarcas Beauty · estilos (tema navideño) */
:root {
  --noche: #0e1c4f;
  --noche-2: #1b2f78;
  --rey: #2446a8;
  --rosa: #e2187a;
  --rosa-2: #b80f60;
  --rojo: #c4142c;
  --oro: #d4a640;
  --oro-claro: #f6dc8e;
  --nieve: #f6f9ff;
  --texto: #1b1d3a;
  --suave: #5b5f82;
  --jafra: #4a2b86;
  --zermat: #d3176e;
  --terramar: #1d3f97;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg stroke='%2396acd9' stroke-opacity='.28' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M40 26v28M26 40h28M30 30l20 20M50 30L30 50'/%3E%3Cpath d='M118 104v20M108 114h20M111 107l14 14M125 107l-14 14'/%3E%3C/g%3E%3Ccircle cx='130' cy='34' r='2' fill='%23d4a640' fill-opacity='.45'/%3E%3Ccircle cx='28' cy='128' r='1.6' fill='%23e2187a' fill-opacity='.35'/%3E%3C/svg%3E"),
    var(--nieve);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.leyendo { overflow: hidden; height: 100dvh; }

/* ============ NIEVE ============ */
.nieve { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
body.leyendo .nieve { display: none; }
.copo { position: absolute; top: -30px; color: #fff; line-height: 1; user-select: none;
  text-shadow: 0 0 1px rgba(30,50,120,.5), 0 0 6px rgba(255,255,255,.9);
  animation: cae linear infinite; }
.copo.punto { width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 1px rgba(255,255,255,.9), 0 0 1px rgba(30,50,120,.5); }
@keyframes cae {
  0%   { transform: translate(0, -30px) rotate(0); }
  33%  { transform: translate(-22px, 33vh) rotate(120deg); }
  66%  { transform: translate(16px, 66vh) rotate(240deg); }
  100% { transform: translate(-8px, 106vh) rotate(360deg); }
}

/* ============ PORTADA (cielo nocturno) ============ */
.cielo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 92px 14px 150px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 50% 38%, rgba(70,110,230,.55), rgba(70,110,230,0) 70%),
    radial-gradient(420px 300px at 10% 85%, rgba(226,24,122,.28), rgba(226,24,122,0) 70%),
    radial-gradient(420px 300px at 92% 80%, rgba(212,166,64,.22), rgba(212,166,64,0) 70%),
    linear-gradient(180deg, #071038 0%, var(--noche) 35%, var(--noche-2) 100%);
}
.cielo::before { /* estrellitas */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 150px 20px, #ffe9a8 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 140px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 170px 120px, #fff 50%, transparent 51%);
  background-size: 200px 170px;
}
.estrella { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: -1;
  background:
    linear-gradient(transparent 45%, #fff 50%, transparent 55%),
    linear-gradient(90deg, transparent 45%, #fff 50%, transparent 55%),
    radial-gradient(circle, #fff 0 12%, rgba(255,233,168,.5) 25%, transparent 55%);
  filter: drop-shadow(0 0 5px #ffe9a8);
  animation: brilla 3.4s ease-in-out infinite; }
@keyframes brilla { 0%,100% { opacity: .2; transform: scale(.55) rotate(0); } 50% { opacity: 1; transform: scale(1.05) rotate(45deg); } }

.esferas { position: absolute; top: 0; left: 0; right: 0; height: 160px; pointer-events: none; z-index: 0; }
.esfera { position: absolute; top: 0; width: 34px; height: var(--largo);
  transform-origin: top center; animation: columpio 4.5s ease-in-out infinite; }
.esfera::before { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 100%; background: linear-gradient(#d4a640, #f6dc8e); transform: translateX(-50%); }
.esfera::after { content: ""; position: absolute; left: 0; top: 100%; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 8%, var(--c1) 20%, var(--c2) 85%);
  box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.esfera.roja { --c1: #ff5164; --c2: #8f0b1d; }
.esfera.oro  { --c1: #ffe39a; --c2: #a8761c; }
.esfera.rosa { --c1: #ff7ab7; --c2: #a3104f; }
.esfera.azul { --c1: #7fa6ff; --c2: #1a2f86; }
@keyframes columpio { 0%,100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }

.saludo { position: relative; z-index: 1; margin: 0 0 4px; font-weight: 700; font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--oro-claro); }
.marca-script { position: relative; z-index: 1; margin: 0 0 22px; font-family: "Alex Brush", cursive; font-weight: 400;
  font-size: clamp(46px, 12vw, 92px); line-height: 1; color: #fff;
  text-shadow: 0 0 22px rgba(120,160,255,.55), 0 3px 0 rgba(0,0,0,.18); }
.marca-script span { color: #ff8cc2; }

.marco { position: relative; z-index: 1; width: min(100%, 600px); padding: 10px; border-radius: 30px;
  background: linear-gradient(135deg, #f6dc8e, #b8862a 30%, #fff3c8 50%, #b8862a 70%, #f6dc8e);
  box-shadow: 0 30px 60px rgba(3,8,40,.55), 0 0 0 1px rgba(255,255,255,.25), 0 0 60px rgba(120,160,255,.35); }
.marco::before { /* moño */
  content: "🎀"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font-size: 52px; line-height: 1; z-index: 3;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.marco img { display: block; width: 100%; height: auto; border-radius: 21px; }
.zona { position: absolute; border-radius: 14px; transition: background .2s, box-shadow .2s; }
.zona:hover, .zona:focus-visible { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), 0 0 24px rgba(255,255,255,.55); outline: none; }
.zona:active { background: rgba(255,255,255,.3); }

.acciones { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; width: 100%; }
.redes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.redes.columna { flex-direction: column; align-items: stretch; width: min(100%, 380px); }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 16px; text-decoration: none; font-weight: 800; font-size: 16px; color: #fff;
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.boton:hover { transform: translateY(-2px); }
.boton svg { width: 22px; height: 22px; flex: none; }
.boton.oro { color: #3d2600; background: linear-gradient(180deg, #ffe7a3, #e2b24d 60%, #c8962f);
  box-shadow: 0 10px 26px rgba(212,166,64,.45), inset 0 1px 0 rgba(255,255,255,.7); font-size: 17px; padding: 16px 32px; }
.boton.oro svg { width: 18px; height: 18px; animation: baja 1.6s ease-in-out infinite; }
.boton.oro::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: reflejo 3.8s ease-in-out infinite; }
@keyframes reflejo { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes baja { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.boton.wa { background: linear-gradient(180deg, #34d873, #1ea952); box-shadow: 0 10px 22px rgba(30,169,82,.35); }
.boton.fb { background: linear-gradient(180deg, #3b8cff, #1458d0); box-shadow: 0 10px 22px rgba(20,88,208,.35); }
.pista { margin: 2px 0 0; font-size: 14px; color: #d6e0ff; }

.colinas { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; z-index: 1; }

/* ============ CATÁLOGOS ============ */
.catalogos { max-width: 1120px; margin: 0 auto; padding: 18px 16px 60px; scroll-margin-top: 10px; }
.encabezado { text-align: center; margin-bottom: 38px; }
.encabezado .copito { display: block; font-size: 26px; color: var(--rey); margin-bottom: 6px; }
.encabezado small { display: block; font-weight: 800; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--rosa); }
.encabezado h2 { margin: 6px 0 8px; font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: clamp(32px, 7vw, 46px); color: var(--noche); line-height: 1.05; }
.encabezado p { margin: 0 auto; max-width: 46ch; color: var(--suave); font-size: 15.5px; }

.tarjetas { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.tarjetas.cuenta-2 { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.tarjeta { --marca: var(--rey);
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--texto);
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(14,28,79,.14); border: 1px solid #e3e9f8;
  transition: transform .25s, box-shadow .25s; }
.tarjeta:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(14,28,79,.22); }
.tarjeta.jafra { --marca: var(--jafra); }
.tarjeta.zermat { --marca: var(--zermat); }
.tarjeta.terramar { --marca: var(--terramar); }
.franja { position: relative; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--marca); color: #fff; font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 26px; letter-spacing: .14em; }
.franja::after { /* listón de regalo */
  content: ""; position: absolute; left: 50%; top: 100%; width: 16px; height: 34px; transform: translateX(-50%); z-index: 2;
  background: linear-gradient(90deg, #b8862a, #f6dc8e, #b8862a); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.foto { position: relative; padding: 28px 26px 8px; display: flex; justify-content: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--marca) 14%, #fff), #fff 70%); }
.foto img { display: block; width: 66%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border-radius: 6px;
  box-shadow: 0 16px 30px rgba(14,28,79,.25); transition: transform .3s; }
.tarjeta.terramar .foto img { aspect-ratio: 1.16 / 1; width: 86%; object-position: center; }
.tarjeta:hover .foto img { transform: scale(1.04) rotate(-1deg); }
.sello { position: absolute; top: 16px; right: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--rojo); box-shadow: 0 4px 10px rgba(196,20,44,.35); }
.info { padding: 14px 20px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.info p { margin: 0; color: var(--suave); font-size: 14px; }
.ver { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 12px;
  font-weight: 800; font-size: 15px; color: var(--marca); border: 2px solid var(--marca); transition: background .2s, color .2s; }
.tarjeta:hover .ver { background: var(--marca); color: #fff; }

.pasos { margin: 60px auto 0; max-width: 900px; text-align: center; }
.pasos h3, .contacto h3 { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: clamp(26px, 5.5vw, 34px); margin: 0 0 18px; color: var(--noche); }
.pasos ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pasos li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px; border-radius: 18px;
  background: #fff; border: 1px dashed #c6d3f2; font-size: 15px; color: var(--suave); }
.pasos b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--rosa), var(--rosa-2)); box-shadow: 0 6px 14px rgba(226,24,122,.35); }

.contacto { position: relative; margin: 64px auto 0; max-width: 620px; padding: 44px 24px 34px; border-radius: 28px; text-align: center; color: #fff;
  background:
    radial-gradient(400px 220px at 50% 0, rgba(120,160,255,.45), rgba(120,160,255,0) 70%),
    linear-gradient(160deg, var(--noche), var(--noche-2));
  box-shadow: 0 24px 50px rgba(14,28,79,.35); display: flex; flex-direction: column; align-items: center; }
.contacto h3 { color: #fff; margin-bottom: 4px; }
.contacto > p { margin: 0 0 16px; color: var(--oro-claro); font-style: italic; font-family: "Cormorant Garamond", serif; font-size: 20px; }
.moño { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; }
.moño::before { content: "🎁"; font-size: 46px; line-height: 56px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.telefono { display: inline-block; margin-bottom: 20px; font-size: clamp(26px, 7vw, 34px); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: .03em;
  padding: 8px 22px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(246,220,142,.5); }

.pie { position: relative; text-align: center; padding: 46px 16px 42px; color: var(--suave); font-size: 14px; background: linear-gradient(180deg, transparent, #e7eefc); }
.guirnalda { position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background:
    radial-gradient(circle at 18px 18px, #c4142c 0 6px, transparent 7px) 0 0 / 108px 26px repeat-x,
    radial-gradient(circle at 54px 18px, #d4a640 0 6px, transparent 7px) 0 0 / 108px 26px repeat-x,
    radial-gradient(circle at 90px 18px, #2446a8 0 6px, transparent 7px) 0 0 / 108px 26px repeat-x,
    radial-gradient(70% 16px at 50% 0, transparent 90%, #1f6b3b 91% 100%, transparent 101%) 0 0 / 36px 16px repeat-x; }
.firma { display: block; font-family: "Alex Brush", cursive; font-size: 46px; color: var(--noche); line-height: 1.1; margin-bottom: 6px; }
.pie p { margin: 4px 0; }
.fiestas { color: var(--rojo); font-weight: 800; }

.flotante { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #34d873, #1ea952); animation: latido 2.6s ease-in-out infinite; }
.flotante svg { width: 32px; height: 32px; }
@keyframes latido { 0%,100% { box-shadow: 0 10px 24px rgba(30,169,82,.45); } 50% { box-shadow: 0 0 0 11px rgba(52,216,115,.18), 0 10px 24px rgba(30,169,82,.45); } }
body.leyendo .flotante { display: none; }

/* aparecer al bajar */
.js .aparece { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .aparece.visible { opacity: 1; transform: none; }
.js .tarjeta.aparece.visible:hover { transform: translateY(-6px); }

@media (max-width: 860px) {
  .tarjetas, .tarjetas.cuenta-2 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pasos ol { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pasos li { flex-direction: row; text-align: left; }
}
@media (max-width: 520px) {
  .cielo { padding-top: 80px; }
  .esfera { width: 26px; height: calc(var(--largo) * .5); }
  .esfera::after { width: 26px; height: 26px; }
  .pista { padding-right: 60px; padding-left: 10px; }
  .redes:not(.columna) { flex-direction: column; align-items: stretch; width: min(100%, 360px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .aparece { opacity: 1; transform: none; }
}

/* ============ VISOR (LIBRO) ============ */
.btn { border: 0; border-radius: 12px; padding: 11px 18px; font-family: inherit; font-weight: 800; font-size: 15px; line-height: 1; cursor: pointer;
  background: var(--rosa); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(226,24,122,.35);
  display: inline-flex; align-items: center; gap: 6px; }
.btn.claro { background: #fff; color: var(--noche); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.btn.wa-mini { background: #1ea952; box-shadow: 0 4px 14px rgba(30,169,82,.35); }
.btn.wa-mini svg { width: 18px; height: 18px; }
#visor { display: none; height: 100dvh; flex-direction: column; color: #fff;
  background: radial-gradient(circle at 50% 35%, #2a42a0, var(--noche) 70%); }
body.leyendo #portada { display: none; }
body.leyendo #visor { display: flex; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.barra h1 { margin: 0; flex: 1; text-align: center; font-family: "Cormorant Garamond", serif; font-size: 23px; font-weight: 700; }
.escenario { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 4px 56px; }
#libro { margin: 0 auto; }
.page { background: #fff; }
.page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.page .cargando { position: absolute; inset: 0; display: grid; place-items: center; color: #99a; font-size: 14px; }
.flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--noche); font-size: 24px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.flecha:disabled { opacity: .3; cursor: default; }
#ant { left: 8px; } #sig { right: 8px; }
.pie-visor { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); font-size: 14px; }
.btn.lupa { padding: 9px 14px; font-size: 14px; background: var(--oro); color: #3d2600; animation: pulso 2.4s ease-in-out 3; }
.btn.wa-mini { padding: 9px 14px; font-size: 14px; }
@keyframes pulso { 0%,100% { box-shadow: 0 4px 14px rgba(212,166,64,.35); } 50% { box-shadow: 0 0 0 8px rgba(212,166,64,.2), 0 4px 14px rgba(212,166,64,.35); } }
@media (max-width: 640px) {
  .escenario { padding: 4px 8px; }
  .flecha { width: 38px; height: 38px; font-size: 20px; background: rgba(255,255,255,.88); }
  .barra h1 { font-size: 19px; }
  .btn { padding: 10px 13px; font-size: 14px; }
}

/* ============ LUPA ============ */
#zoom { position: fixed; inset: 0; z-index: 50; background: rgba(6,10,32,.95); display: flex; flex-direction: column; touch-action: none; }
#zoom[hidden] { display: none; }
.z-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); color: #fff; font-size: 14px; }
.z-grupo { display: flex; gap: 8px; }
.z-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.z-btn:hover { background: rgba(255,255,255,.28); }
.z-area { position: relative; flex: 1; overflow: hidden; cursor: grab; }
.z-area.arrastrando { cursor: grabbing; }
#zImg { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
#zoom .flecha { top: 55%; }
#zAnt { left: 10px; } #zSig { right: 10px; }
.z-ayuda { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0;
  background: rgba(255,255,255,.92); color: var(--texto); font-size: 13px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: opacity .5s; pointer-events: none; }
.z-ayuda.oculta { opacity: 0; }
@media (max-width: 480px) { .z-ayuda { white-space: normal; text-align: center; width: calc(100% - 32px); } }
