/**
 * @file heladeria-roma.css
 * @description Sistema de diseño y arquitectura visual de la Heladería Roma.
 *              Paleta extraída del isologo real (crema, tinta, rojo Roma, oro 1952).
 * @author Innectia Engineering Division (https://innectia.com)
 * @version 1.0.0
 */

/* ============================= TOKENS ============================= */
:root{
  /* Color — extraído del isologo real (sello ovalado, guion "Roma", tinta negra) */
  --crema:        #F1E9D2;   /* fondo base, pergamino de vainilla */
  --panna:        #FBF7EC;   /* superficies de tarjetas, más clara que el fondo */
  --tinta:        #221A14;   /* texto principal, negro cálido de sello */
  --tinta-suave:  #5B4E3F;   /* texto secundario */
  --rosso:        #9C1F2E;   /* rojo Roma — acento de marca, del script del logo */
  --rosso-deep:   #6E1520;   /* rojo profundo, hover/pressed */
  --oro:          #A9793B;   /* oro envejecido, anillo del sello "1952" */
  --pistacchio:   #77875B;   /* verde pistacho, etiquetas de sabor */
  --mora:         #4A2E3A;   /* berry profundo, sombras cálidas */
  --linea:        rgba(34,26,20,0.12);
  --linea-fuerte: rgba(34,26,20,0.28);
  --alert:        #C0392B;   /* reservado solo para avisos críticos */
  --conversion:   #25D366;   /* reservado solo para CTA de WhatsApp */
  --header-h: 84px;
  --footer-h: 48px;

  /* Tipografía */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Work Sans', 'Segoe UI', sans-serif;
  --f-ticket: 'Courier Prime', 'Courier New', monospace;

  --ease-cinema: cubic-bezier(.16,.84,.24,1);
}

*{ box-sizing:border-box; }
html, body{
  height:100%;
  margin:0;
  overflow:hidden; /* el documento nunca scrollea: navegación 100% por pager JS */
  background:var(--crema);
  color:var(--tinta);
  font-family:var(--f-body);
  cursor:none; /* reemplazado por cursor personalizado */
}
body{ position:relative; }
::selection{ background:var(--rosso); color:var(--panna); }
a{ color:inherit; }
button{ font-family:inherit; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

/* ============================= FONDO TEXTURA ============================= */
.grano{
  position:fixed; inset:0; pointer-events:none; z-index:1; opacity:.05; mix-blend-mode:multiply;
  background-image: radial-gradient(var(--tinta) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

/* ============================= HEADER (fijo, fuera del pager) ============================= */
.site-header{
  position:fixed; top:0; left:0; width:100%; height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(20px, 4vw, 56px);
  z-index:500;
  background:linear-gradient(to bottom, rgba(241,233,210,0.96), rgba(241,233,210,0.75) 80%, transparent);
}
.brand-mark{ display:flex; align-items:center; gap:14px; text-decoration:none; }
.brand-mark svg{ width:46px; height:46px; }
.brand-mark .brand-name{
  font-family:var(--f-display); font-weight:600; font-size:1.15rem; letter-spacing:.02em; color:var(--tinta);
}
.brand-mark .brand-since{
  display:block; font-family:var(--f-ticket); font-size:.62rem; letter-spacing:.12em; color:var(--tinta-suave); text-transform:uppercase;
}

.main-nav{ display:flex; align-items:center; gap:clamp(10px,2vw,28px); }
.main-nav button{
  background:none; border:none; cursor:none;
  font-family:var(--f-body); font-size:.82rem; letter-spacing:.03em; color:var(--tinta-suave);
  padding:6px 2px; position:relative; transition:color .3s;
}
.main-nav button::after{
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:0; background:var(--rosso);
  transition:width .35s var(--ease-cinema);
}
.main-nav button:hover{ color:var(--tinta); }
.main-nav button:hover::after{ width:100%; }
.main-nav button[aria-current="true"]{ color:var(--rosso); }
.main-nav button[aria-current="true"]::after{ width:100%; }
.main-nav button:focus-visible, .site-header a:focus-visible{ outline:2px solid var(--rosso); outline-offset:3px; }

/* Sellos de progreso (indicador de sección — sustituye a los puntos genéricos) */
.stamp-progress{ display:flex; gap:7px; align-items:center; }
.stamp-progress .stamp-dot{
  width:11px; height:11px; border-radius:50%; border:1.4px solid var(--oro); background:transparent;
  transition:background .4s var(--ease-cinema), transform .4s var(--ease-cinema);
}
.stamp-progress .stamp-dot.visited{ background:var(--oro); }
.stamp-progress .stamp-dot.active{ background:var(--rosso); border-color:var(--rosso); transform:scale(1.25); }
.stamp-progress .stamp-count{ font-family:var(--f-ticket); font-size:.72rem; color:var(--tinta-suave); margin-left:8px; }

/* ============================= PAGER (arquitectura cero-scroll) ============================= */
.pager-viewport{
  position:relative; overflow:hidden;
  height:calc(100vh - var(--header-h));
  margin-top:var(--header-h);
  width:100%;
}
.pager-track{
  will-change:transform;
  transition:transform .85s var(--ease-cinema);
}
.screen{
  height:calc(100vh - var(--header-h));
  display:flex; flex-direction:column; justify-content:center;
  position:relative; overflow:hidden;
  padding:0 clamp(24px, 6vw, 96px);
}

/* Fondo de video de cada pantalla + respaldo CSS (swirl de gelato) mientras no existan los .mp4/.webm */
.screen-media{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.screen-media video{ width:100%; height:100%; object-fit:cover; display:block; }
.screen-media .fallback-swirl{
  position:absolute; inset:0;
  background:
    radial-gradient(closest-side at 20% 25%, rgba(169,121,59,.35), transparent 70%),
    radial-gradient(closest-side at 82% 70%, rgba(156,31,46,.30), transparent 65%),
    conic-gradient(from 210deg at 50% 50%, var(--crema), #E7D9AF, var(--crema), #EFC9BE, var(--crema));
  filter:saturate(0.9);
  animation:swirl-drift 26s linear infinite;
}
@keyframes swirl-drift{ to{ background-position: 200px 0, -160px 40px, 0 0; } }
.screen-media .overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(34,26,20,.30), rgba(34,26,20,.62)); }
.screen-media.light .overlay{ background:linear-gradient(180deg, rgba(241,233,210,.55), rgba(241,233,210,.82)); }

.screen-content{ position:relative; z-index:2; max-width:980px; }
.screen[data-media="light"] .screen-content{ color:var(--tinta); }
.screen[data-media="dark"] .screen-content{ color:var(--panna); }

/* El Hero respeta el centrado del diseño original */
.screen[data-screen-id="hero"] .screen-content{
  margin:0 auto; text-align:center; display:flex; flex-direction:column; align-items:center;
}
.screen[data-screen-id="hero"] .eyebrow::before{ content:none; }
.screen[data-screen-id="hero"] .screen-title{ max-width:16ch; }
.screen[data-screen-id="hero"] .screen-subtitle{ margin-left:auto; margin-right:auto; }
.screen[data-screen-id="hero"] .cta-row{ justify-content:center; }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--f-ticket); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  margin-bottom:10px; opacity:.85;
}
.eyebrow::before{ content:""; width:26px; height:1px; background:currentColor; opacity:.6; }

/* Divisor decorativo (motivo tomado del scrollwork del isologo real) */
.flourish-divider{ display:block; width:120px; height:16px; margin:0 0 20px 0; color:currentColor; opacity:.75; }
.flourish-divider path{ stroke-dasharray:900; stroke-dashoffset:900; }

h1.screen-title, h2.screen-title{
  font-family:var(--f-display); font-weight:600; line-height:1.04;
  font-size:clamp(2.1rem, 5.4vw, 4.3rem);
  margin:0 0 20px 0; max-width:14ch;
}
.screen-subtitle{ font-size:clamp(1rem,1.6vw,1.2rem); max-width:52ch; line-height:1.55; opacity:.92; margin-bottom:34px; }

/* Revelado en cascada de cada pantalla al activarse */
.screen .eyebrow, .screen .flourish-divider, .screen .screen-title,
.screen .screen-subtitle, .screen .cta-row, .screen .proof-line{
  opacity:0; transform:translateY(22px);
}
.screen.is-active .eyebrow{ animation:cascade-in .8s var(--ease-cinema) forwards; animation-delay:.05s; }
.screen.is-active .flourish-divider{ animation:cascade-in .8s var(--ease-cinema) forwards; animation-delay:.12s; }
.screen.is-active .flourish-divider path{ animation:flourish-draw 1.3s var(--ease-cinema) forwards; animation-delay:.15s; }
.screen.is-active .screen-title{ animation:cascade-in .85s var(--ease-cinema) forwards; animation-delay:.2s; }
.screen.is-active .screen-subtitle{ animation:cascade-in .85s var(--ease-cinema) forwards; animation-delay:.34s; }
.screen.is-active .cta-row{ animation:cascade-in .85s var(--ease-cinema) forwards; animation-delay:.46s; }
.screen.is-active .proof-line{ animation:cascade-in .85s var(--ease-cinema) forwards; animation-delay:.58s; }
@keyframes cascade-in{ to{ opacity:1; transform:translateY(0); } }
@keyframes flourish-draw{ to{ stroke-dashoffset:0; } }

/* Marca de agua de la Loba Capitolina — presencia sutil en pantallas de apertura y cierre */
.lupa-watermark{
  position:absolute; z-index:1; pointer-events:none;
  width:clamp(260px, 34vw, 520px); opacity:.07;
  right:clamp(-40px, 2vw, 40px); bottom:-4%;
}
.screen[data-media="light"] .lupa-watermark{ opacity:.05; }

/* Acento tricolore — un susurro de origen italiano, nunca protagonista */
.italia-stripe{ display:inline-flex; gap:2px; margin-left:9px; vertical-align:middle; }
.italia-stripe i{ width:4px; height:9px; display:inline-block; border-radius:1px; }
.italia-stripe i:nth-child(1){ background:#2E7D46; }
.italia-stripe i:nth-child(2){ background:var(--panna); border:1px solid var(--linea-fuerte); }
.italia-stripe i:nth-child(3){ background:var(--rosso); }

.cta-row{ display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.btn{
  cursor:none; text-decoration:none; display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:2px; font-size:.92rem; letter-spacing:.02em;
  border:1.4px solid var(--linea-fuerte); transition:transform .3s var(--ease-cinema), box-shadow .3s;
}
.btn-primary{ background:var(--rosso); color:var(--panna); border-color:var(--rosso); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(156,31,46,.28); }
.btn-ghost{ background:transparent; }
.screen[data-media="dark"] .btn-ghost{ border-color:rgba(251,247,236,.5); color:var(--panna); }
.screen[data-media="light"] .btn-ghost{ border-color:var(--linea-fuerte); color:var(--tinta); }
.btn-ghost:hover{ transform:translateY(-2px); }
.btn-conversion{ background:var(--conversion); color:#0b3d21; border-color:var(--conversion); font-weight:600; }
.btn-conversion:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(37,211,102,.35); }

.proof-line{ margin-top:26px; font-family:var(--f-ticket); font-size:.75rem; letter-spacing:.06em; opacity:.75; }

/* --- Grillas de contenido (sabores, proceso, faq) --- */
.grid-cards{ display:grid; gap:18px; grid-template-columns:repeat(4,1fr); margin-top:8px; }
@media (max-width:900px){ .grid-cards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .grid-cards{ grid-template-columns:1fr; } }

.flavor-card, .step-card, .faq-card{
  background:rgba(251,247,236,.88); border:1px solid var(--linea); border-radius:3px;
  padding:20px; backdrop-filter:blur(3px);
  opacity:0; transform:translateY(18px);
}
.screen.is-active .flavor-card, .screen.is-active .step-card, .screen.is-active .faq-card{
  animation:card-reveal .7s var(--ease-cinema) forwards;
}
.screen.is-active .flavor-card:nth-child(1),.screen.is-active .step-card:nth-child(1){ animation-delay:.05s; }
.screen.is-active .flavor-card:nth-child(2),.screen.is-active .step-card:nth-child(2){ animation-delay:.14s; }
.screen.is-active .flavor-card:nth-child(3),.screen.is-active .step-card:nth-child(3){ animation-delay:.23s; }
.screen.is-active .flavor-card:nth-child(4),.screen.is-active .step-card:nth-child(4){ animation-delay:.32s; }
@keyframes card-reveal{ to{ opacity:1; transform:translateY(0); } }

.flavor-card .tag{
  display:inline-block; font-family:var(--f-ticket); font-size:.62rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--pistacchio); border:1px solid currentColor; padding:2px 8px; border-radius:20px; margin-bottom:10px;
}
.flavor-card h3{ font-family:var(--f-display); font-size:1.15rem; margin:0 0 8px 0; }
.flavor-card p{ font-size:.88rem; color:var(--tinta-suave); margin:0; line-height:1.5; }

.step-card{ display:flex; flex-direction:column; gap:8px; }
.step-card .step-mark{ font-family:var(--f-ticket); color:var(--oro); font-size:.75rem; letter-spacing:.1em; }
.step-card h3{ font-family:var(--f-display); font-size:1.1rem; margin:0; }
.step-card p{ font-size:.86rem; color:var(--tinta-suave); margin:0; line-height:1.5; }

.bullets{ list-style:none; padding:0; margin:18px 0 0 0; display:flex; flex-direction:column; gap:10px; }
.bullets li{ display:flex; gap:10px; align-items:baseline; font-size:.95rem; }
.bullets li::before{ content:"—"; color:var(--rosso); }

.faq-list{ display:flex; flex-direction:column; gap:12px; max-width:720px; }
.faq-card{ opacity:1; transform:none; }
.faq-card summary{ cursor:none; font-family:var(--f-display); font-size:1.02rem; list-style:none; display:flex; justify-content:space-between; gap:16px; }
.faq-card summary::-webkit-details-marker{ display:none; }
.faq-card summary::after{ content:"+"; color:var(--rosso); font-size:1.2rem; }
.faq-card[open] summary::after{ content:"–"; }
.faq-card p{ margin:10px 0 0 0; color:var(--tinta-suave); font-size:.9rem; line-height:1.55; }

.locate-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.locate-card{ background:rgba(251,247,236,.9); border:1px solid var(--linea); padding:16px; position:relative; }
.locate-card .locate-icon{ display:block; width:22px; height:22px; color:var(--oro); margin-bottom:8px; }
.locate-card .locate-icon svg{ width:100%; height:100%; }
.locate-card .label{ font-family:var(--f-ticket); font-size:.66rem; text-transform:uppercase; letter-spacing:.12em; color:var(--oro); }
.locate-card .value{ font-family:var(--f-display); font-size:1rem; margin-top:6px; }
.locate-card .value small{ display:block; font-family:var(--f-body); font-size:.72rem; color:var(--tinta-suave); margin-top:4px; }

/* Ubicación: datos a la izquierda, mapa real embebido a la derecha */
.ubicacion-layout{ display:grid; grid-template-columns:1fr 1.1fr; gap:24px; margin-top:14px; align-items:stretch; max-width:1060px; }
.map-embed{ border-radius:4px; overflow:hidden; border:1px solid var(--linea-fuerte); min-height:280px; box-shadow:0 14px 34px rgba(34,26,20,.18); filter:saturate(.85); }
@media (max-width:820px){ .ubicacion-layout{ grid-template-columns:1fr; } .map-embed{ min-height:220px; } }

/* Marco decorativo real (scrollwork del sitio anterior), flanqueando el Hero */
.side-scroll{ position:absolute; top:6%; bottom:6%; width:auto; height:88%; z-index:1; opacity:.4; pointer-events:none; filter:sepia(.25) saturate(1.1); }
.side-scroll.left{ left:clamp(6px,2vw,32px); }
.side-scroll.right{ right:clamp(6px,2vw,32px); }
@media (max-width:900px){ .side-scroll{ display:none; } }

/* Pantallas más anchas para catálogos densos (gustos/postres) */
.screen-content-wide{ max-width:1120px; }
.screen-title-compact{ font-size:clamp(1.7rem, 3.6vw, 2.7rem); max-width:22ch; margin-bottom:14px; }

/* Gustos: destacados + columnas del catálogo real */
.grid-cards-4{ grid-template-columns:repeat(4,1fr); margin-bottom:20px; }
.gustos-columns{ display:grid; grid-template-columns:repeat(3,1fr); gap:0 32px; }
@media (max-width:760px){ .gustos-columns{ grid-template-columns:repeat(2,1fr); } .grid-cards-4{ grid-template-columns:repeat(2,1fr); } }
.gustos-col{ list-style:none; margin:0; padding:14px 14px 6px; border-radius:4px; }
.gustos-col:nth-child(1){ background:linear-gradient(180deg, rgba(46,125,70,.10), transparent 60%); border-top:2px solid #2E7D46; }
.gustos-col:nth-child(2){ background:linear-gradient(180deg, rgba(156,31,46,.07), transparent 60%); border-top:2px solid var(--linea-fuerte); }
.gustos-col:nth-child(3){ background:linear-gradient(180deg, rgba(156,31,46,.10), transparent 60%); border-top:2px solid var(--rosso); }
.gustos-col li{
  font-size:.78rem; padding:4px 0; border-bottom:1px dotted var(--linea); color:var(--tinta-suave);
}
.gustos-note{ margin-top:16px; font-size:.74rem; font-style:italic; opacity:.7; }

/* Postres: catálogo con fotos reales */
.postres-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:6px; }
@media (max-width:900px){ .postres-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .postres-grid{ grid-template-columns:repeat(2,1fr); } }
.postre-card{
  background:transparent; border:none; overflow:visible;
  opacity:0; transform:translateY(18px); text-align:center; padding-bottom:0;
}
.screen.is-active .postre-card{ animation:card-reveal .7s var(--ease-cinema) forwards; }
.postre-thumb{
  width:100%; aspect-ratio:1/1; overflow:hidden; border-radius:50%;
  border:3px solid var(--panna); box-shadow:0 8px 22px rgba(0,0,0,.32);
}
.postre-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s var(--ease-cinema); }
.postre-card:hover .postre-thumb img{ transform:scale(1.1); }
.postre-card h3{ font-family:var(--f-display); font-size:.92rem; color:var(--panna); margin:10px 0 2px; }
.postre-card p{ font-size:.7rem; color:rgba(251,247,236,.65); margin:0; }

/* Historia real, firmada */
.historia-body{ max-width:640px; font-size:.95rem; line-height:1.65; }
.historia-body p{ margin:0 0 14px 0; }
.historia-body .historia-subhead{ font-family:var(--f-display); font-size:1.1rem; margin:18px 0 8px 0; }
.historia-signature{ margin-top:8px; font-family:var(--f-display); font-style:italic; font-size:1.05rem; color:var(--rosso); }
.historia-signature span{ font-family:var(--f-ticket); font-style:normal; font-size:.7rem; color:var(--tinta-suave); display:block; letter-spacing:.08em; text-transform:uppercase; }

/* ============================= TEASER PROACTIVO DEL CONCIERGE ============================= */
.concierge-teaser{
  position:fixed; right:clamp(16px,3vw,40px); bottom:calc(var(--footer-h) + 92px);
  z-index:850; width:min(300px, 84vw);
  background:var(--panna); border:1px solid var(--linea-fuerte); border-radius:10px 10px 2px 10px;
  box-shadow:0 18px 44px rgba(34,26,20,.28); padding:14px 16px;
  transform:translateY(10px) scale(.96); opacity:0; pointer-events:none;
  transition:transform .4s var(--ease-cinema), opacity .4s;
}
.concierge-teaser.show{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
.concierge-teaser p{ margin:0 0 10px 0; font-size:.84rem; line-height:1.5; }
.teaser-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.teaser-actions button{ font-size:.76rem; padding:8px 12px; border-radius:20px; }
.teaser-close{
  position:absolute; top:6px; right:8px; background:none; border:none; cursor:none;
  color:var(--tinta-suave); font-size:.9rem; opacity:.6;
}
.teaser-close:hover{ opacity:1; }

/* ============================= EL SELLO (elemento firma animado) ============================= */
.brand-seal{ position:relative; }
.brand-seal svg{ display:block; }
.seal-ring{ transform-origin:50% 50%; animation:seal-rotate 34s linear infinite; }
@keyframes seal-rotate{ to{ transform:rotate(360deg); } }
.seal-glyph{ animation:seal-breathe 5.5s ease-in-out infinite; transform-origin:50% 50%; }
@keyframes seal-breathe{ 0%,100%{ opacity:.9; } 50%{ opacity:1; filter:drop-shadow(0 0 3px rgba(169,121,59,.5)); } }

/* Sello de transición: se "estampa" al cambiar de pantalla — ficha real con el logo, como un sello de tinta */
.stamp-transition{
  position:fixed; inset:0; z-index:600; pointer-events:none;
  display:flex; align-items:center; justify-content:center;
  opacity:0;
}
.stamp-card{
  width:200px; height:200px; border-radius:50%;
  background:var(--panna); box-shadow:0 20px 50px rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
  transform:scale(2.4); opacity:0;
}
.stamp-card img{ width:78%; height:78%; object-fit:contain; }
.stamp-transition.firing{ animation:stamp-flash .55s var(--ease-cinema); }
.stamp-transition.firing .stamp-card{ animation:stamp-press .55s var(--ease-cinema); }
@keyframes stamp-flash{ 0%{opacity:0;} 18%{opacity:1;} 60%{opacity:.4;} 100%{opacity:0;} }
@keyframes stamp-press{ 0%{ transform:scale(2.6); opacity:0; } 22%{ transform:scale(1); opacity:1; } 45%{ transform:scale(0.97); } 100%{ transform:scale(0.94); opacity:0; } }

/* ============================= FLECHAS DE NAVEGACIÓN ============================= */
.pager-arrow{
  position:fixed; right:clamp(16px,3vw,40px); z-index:400;
  width:46px; height:46px; border-radius:50%; border:1.4px solid var(--linea-fuerte);
  background:rgba(251,247,236,.75); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; cursor:none;
  transition:transform .25s, background .25s;
}
.pager-arrow:hover{ transform:translateY(-2px); background:var(--panna); }
.pager-arrow.up{ bottom:calc(var(--footer-h) + 78px); }
.pager-arrow.down{ bottom:calc(var(--footer-h) + 20px); }
.pager-arrow:disabled{ opacity:.25; }
.pager-arrow svg{ width:16px; height:16px; }

/* ============================= FOOTER INSTITUCIONAL (obligatorio, fijo) ============================= */
.site-footer{
  position:fixed; bottom:0; left:0; width:100vw; height:var(--footer-h); z-index:9999;
  backdrop-filter:blur(12px); background:rgba(34,26,20,0.90); border-top:1px solid rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(16px,3vw,40px); font-size:.72rem; color:rgba(251,247,236,.7);
}
.site-footer a{ text-decoration:none; color:inherit; }
.site-footer a:hover{ color:var(--panna); }
.footer-legal{ display:flex; gap:16px; }
.footer-credit a{ color:var(--oro); }

/* ============================= CURSOR PERSONALIZADO ============================= */
/* Herramientas reales de heladería artesanal: cucurucho con scoop en reposo, paleta de servir al pasar sobre interactivos */
.brand-cursor{
  position:fixed; top:0; left:0; width:32px; height:32px; pointer-events:none; z-index:10000;
  transform:translate(-50%,-58%) rotate(0deg); transition:transform .15s ease-out;
}
.brand-cursor .cursor-rest, .brand-cursor .cursor-hover{ display:block; width:32px; height:32px; }
.brand-cursor .cursor-hover{ display:none; }
.brand-cursor.hover-state{ transform:translate(-50%,-58%) rotate(-8deg) scale(1.15); }
.brand-cursor.hover-state .cursor-rest{ display:none; }
.brand-cursor.hover-state .cursor-hover{ display:block; animation:scoop-pop .3s var(--ease-cinema); }
@keyframes scoop-pop{ from{ transform:scale(.55) rotate(-20deg); opacity:0; } to{ transform:scale(1) rotate(0); opacity:1; } }
.cursor-drip{
  position:fixed; top:0; left:0; width:6px; height:6px; border-radius:50% 50% 50% 0;
  background:var(--rosso); pointer-events:none; z-index:9999; opacity:.85;
  animation:drip-rise 1.1s ease-out forwards;
}
@keyframes drip-rise{ to{ transform:translate(-50%,-26px) rotate(45deg) scale(.3); opacity:0; } }

.click-burst{
  position:fixed; top:0; left:0; width:14px; height:14px; border-radius:50%;
  border:1.5px solid var(--oro); pointer-events:none; z-index:9999; transform:translate(-50%,-50%);
  animation:burst-expand .6s var(--ease-cinema) forwards;
}
@keyframes burst-expand{ to{ width:70px; height:70px; opacity:0; border-width:.5px; } }

/* ============================= CONCIERGE ============================= */
.concierge-launcher{
  position:fixed; right:clamp(16px,3vw,40px); bottom:calc(var(--footer-h) + 20px);
  z-index:800; width:60px; height:60px; border-radius:50%;
  background:var(--rosso); border:none; cursor:none;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 28px rgba(156,31,46,.4);
  animation:launcher-glow 3.2s ease-in-out infinite;
}
@keyframes launcher-glow{ 0%,100%{ box-shadow:0 10px 28px rgba(156,31,46,.4);} 50%{ box-shadow:0 10px 34px rgba(156,31,46,.65);} }
.concierge-launcher svg{ width:26px; height:26px; }
.concierge-launcher .ping{ position:absolute; inset:0; border-radius:50%; border:2px solid var(--oro); animation:ping-out 2.6s ease-out infinite; }
@keyframes ping-out{ 0%{ transform:scale(.9); opacity:.8;} 100%{ transform:scale(1.5); opacity:0; } }

.concierge-panel{
  position:fixed; right:clamp(12px,3vw,40px); bottom:calc(var(--footer-h) + 90px);
  z-index:900; width:min(360px, 92vw); max-height:min(560px,72vh);
  background:var(--panna); border:1px solid var(--linea-fuerte); border-radius:6px;
  box-shadow:0 24px 60px rgba(34,26,20,.32);
  display:flex; flex-direction:column; overflow:hidden;
  transform:translateY(16px) scale(.97); opacity:0; pointer-events:none;
  transition:transform .35s var(--ease-cinema), opacity .35s;
}
.concierge-panel.open{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
.concierge-head{ padding:16px 18px; background:var(--tinta); color:var(--panna); display:flex; align-items:center; gap:12px; }
.concierge-head .seal-mini{
  width:36px; height:36px; flex-shrink:0; border-radius:50%; background:var(--panna);
  display:flex; align-items:center; justify-content:center; padding:3px; box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.concierge-head .seal-mini img{ width:100%; height:100%; object-fit:contain; }
.concierge-head h4{ margin:0; font-family:var(--f-display); font-size:.98rem; }
.concierge-head span{ display:block; font-size:.72rem; opacity:.7; }
.concierge-close{ margin-left:auto; background:none; border:none; color:var(--panna); cursor:none; font-size:1.1rem; opacity:.7; }
.concierge-close:hover{ opacity:1; }

.concierge-body{ padding:16px 18px; overflow-y:auto; flex:1; cursor:auto; }
.bubble{ background:var(--crema); border-radius:10px 10px 10px 2px; padding:12px 14px; font-size:.86rem; line-height:1.5; margin-bottom:12px; max-width:92%; }
.bubble.system{ background:transparent; border:1px dashed var(--linea-fuerte); font-family:var(--f-ticket); font-size:.72rem; color:var(--tinta-suave); }
.thinking-dots{ display:inline-flex; gap:4px; }
.thinking-dots span{ width:5px; height:5px; border-radius:50%; background:var(--tinta-suave); animation:think-bounce 1s infinite ease-in-out; }
.thinking-dots span:nth-child(2){ animation-delay:.15s; }
.thinking-dots span:nth-child(3){ animation-delay:.3s; }
@keyframes think-bounce{ 0%,80%,100%{ transform:translateY(0); opacity:.4; } 40%{ transform:translateY(-4px); opacity:1; } }

.option-list{ display:flex; flex-direction:column; gap:8px; margin-top:6px; }
.option-chip{
  text-align:left; background:var(--panna); border:1.3px solid var(--linea-fuerte); border-radius:20px;
  padding:10px 16px; font-size:.82rem; cursor:none; transition:background .2s, border-color .2s, transform .2s;
}
.option-chip:hover{ background:var(--crema); border-color:var(--rosso); transform:translateX(2px); }
.option-chip:focus-visible{ outline:2px solid var(--rosso); }

.closing-card{ background:var(--crema); border:1px solid var(--linea-fuerte); border-radius:8px; padding:14px; margin-top:10px; }
.closing-card .final-msg{ font-family:var(--f-ticket); font-size:.76rem; line-height:1.6; white-space:pre-wrap; color:var(--tinta); background:var(--panna); padding:10px; border-radius:4px; border:1px dashed var(--linea-fuerte); margin:10px 0; }
.closing-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.closing-actions button, .closing-actions a{ font-size:.78rem; padding:9px 14px; }

@media (max-width:640px){
  :root{ --header-h:68px; }
  .main-nav{ display:none; }
  .locate-grid, .grid-cards{ grid-template-columns:1fr; }
}
