/* Fuente de respaldo con las medidas de Cormorant Garamond: mientras carga la fuente web los títulos ocupan casi lo
   mismo y la página no salta (CLS). */
@font-face { font-family: 'Cormorant respaldo'; src: local('Georgia'), local('Times New Roman'); size-adjust: 84%; ascent-override: 92%; descent-override: 29%; line-gap-override: 0%; }
/* =====================================================================
   Sistema de diseño — Belleza Sobrenatural · Cosmetóloga Angélica Solarte
   Spa de lujo cálido: crema, nude y dorado (medidos del logo y los flyers).
   Tokens, reset, tipografía y componentes base compartidos por la web y el panel.
   60 % crema/marfil · 30 % nude/arena y café · 10 % dorado (líneas, íconos, acentos).
   ===================================================================== */

:root {
  color-scheme: light;

  /* Neutros cálidos (60 %) */
  --crema: #F7EFE6;        /* fondo general (medido #F6ECE2 – #F8EFE4) */
  --marfil: #FBF8F4;       /* tarjetas y superficies */
  --blanco: #FFFFFF;
  /* Nude y arena (30 %) */
  --nude: #EAD7CC;         /* rosado empolvado */
  --nude-suave: #F3E6DE;
  --arena: #D9C3AE;
  --interior-logo: #F2E6D7;
  /* Dorado (10 %): el claro solo para líneas, íconos y bordes; el oscuro para texto pequeño (5,2:1 sobre crema) */
  --dorado: #B8925A;
  --dorado-brillo: #E8C886;
  --dorado-aro: #C58E3F;
  --dorado-texto: #7D5F33;
  --dorado-hover: #6A4F29;
  --degradado-oro: linear-gradient(135deg, #F2D59A 0%, #C58E3F 38%, #A8752F 62%, #E8C886 85%, #C58E3F 100%);
  /* Texto */
  --texto: #3B2F2A;        /* café muy oscuro, no negro (12:1 sobre crema) */
  --texto-suave: #6B5A51;  /* 5,7:1 sobre crema */
  --borde: #E6D6C8;
  --borde-fuerte: #D2BCA8;
  /* Noche: secciones de contraste ("spa de noche con velas") */
  --noche: #2E2420;
  --noche-2: #3A2E29;
  --noche-texto: #F3E9DE;
  --noche-suave: #CDBBAA;

  /* Estados legibles */
  --error: #9B3B3B;
  --error-fondo: #F8E6E3;
  --ok: #4F6B3A;
  --ok-fondo: #ECF1E3;
  --aviso: #7A5A12;
  --aviso-fondo: #FBF0D9;
  --whatsapp: #1F6B44;
  --whatsapp-fondo: #E7F3EA;

  --fuente-titulo: 'Cormorant Garamond', 'Cormorant', 'Cormorant respaldo', Georgia, serif;
  --fuente: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fuente-script: 'Pinyon Script', 'Great Vibes', cursive;

  --radio-sm: 12px;
  --radio: 20px;
  --radio-lg: 28px;
  --sombra: 0 1px 2px rgba(59, 47, 42, 0.04), 0 10px 30px rgba(110, 82, 50, 0.07);
  --sombra-alta: 0 18px 50px rgba(59, 47, 42, 0.16);
  --ancho: 1160px;
  --gutter: 16px;
  --toque: 44px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--fuente); font-size: 17px; line-height: 1.65; font-weight: 400;
  color: var(--texto); background: var(--crema); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--dorado-texto); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--texto); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--fuente-titulo); font-weight: 600; line-height: 1.08; color: var(--texto);
  margin: 0 0 0.5em; letter-spacing: 0;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 6.4vw, 3.1rem); font-weight: 500; }
h3 { font-size: 1.5rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--dorado-texto); font-weight: 500; }
small, .pequeno { font-size: 0.9375rem; }
:focus-visible { outline: 2.5px solid var(--dorado-texto); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--texto); color: var(--marfil); padding: 10px 16px; border-radius: 10px; }
.saltar:focus { top: 8px; color: var(--marfil); }

/* Frase de acento en script (solo frases cortas, nunca textos largos ni botones) */
.script { font-family: var(--fuente-script); font-weight: 400; color: var(--dorado-texto); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.2; letter-spacing: 0; }
.antetitulo { font-family: var(--fuente); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8125rem; font-weight: 500; color: var(--dorado-texto); margin: 0 0 12px; display: inline-flex; align-items: center; gap: 12px; }
.antetitulo::before { content: ''; width: 28px; height: 1px; background: var(--dorado); }

/* ---------- Layout ---------- */
.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.pila > * + * { margin-top: 1rem; }
.fila { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.suave { color: var(--texto-suave); }
.centro { text-align: center; }

/* ---------- Línea y aro dorados ---------- */
.linea-oro { display: flex; align-items: center; gap: 14px; color: var(--dorado); }
.linea-oro::before, .linea-oro::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--dorado), transparent); }
.aro { position: relative; border-radius: 50%; padding: 6px; background: var(--degradado-oro); box-shadow: 0 12px 40px rgba(168, 117, 47, 0.18); }
.aro > img, .aro > picture img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; border: 4px solid var(--marfil); }
.arco { border-radius: 999px 999px var(--radio) var(--radio); overflow: hidden; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--toque); padding: 11px 24px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--fuente); font-weight: 500; font-size: 1rem; line-height: 1.2; letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primario { background: var(--dorado-texto); color: var(--marfil); box-shadow: inset 0 0 0 1px rgba(255, 240, 210, 0.25); }
.btn-primario:hover { background: var(--dorado-hover); color: var(--marfil); box-shadow: 0 8px 22px rgba(125, 95, 51, 0.28); }
.btn-oscuro { background: var(--texto); color: var(--marfil); }
.btn-oscuro:hover { background: #2a211d; color: var(--marfil); }
.btn-secundario { background: transparent; color: var(--texto); border-color: var(--dorado); }
.btn-secundario:hover { background: var(--marfil); border-color: var(--dorado-texto); color: var(--texto); }
.btn-suave { background: var(--nude-suave); color: var(--texto); }
.btn-suave:hover { background: var(--nude); color: var(--texto); }
.btn-whatsapp { background: var(--whatsapp-fondo); color: var(--whatsapp); border-color: #C3E1CC; }
.btn-whatsapp:hover { background: #D9EEDF; color: var(--whatsapp); }
.btn-claro { background: var(--marfil); color: var(--texto); }
.btn-claro:hover { background: var(--blanco); color: var(--texto); }
.btn-peligro { background: var(--error-fondo); color: var(--error); border-color: #EDCBC6; }
.btn-texto { background: none; color: var(--dorado-texto); padding-inline: 8px; }
.btn-texto:hover { color: var(--texto); }
.btn-grande { min-height: 54px; padding: 15px 30px; font-size: 1.0625rem; }
@media (max-width: 359px) { .btn { max-width: 100%; white-space: normal; text-align: center; } .btn-grande { padding: 12px 20px; } }
.btn-bloque { width: 100%; }
.btn-icono { width: var(--toque); min-width: var(--toque); padding: 0; flex: none; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.btn-enlace { background: none; border: 0; padding: 4px 2px; min-height: 0; color: var(--dorado-texto); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-enlace:hover { color: var(--texto); }

/* ---------- Tarjetas y chips ---------- */
.tarjeta { background: var(--marfil); border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); border: 1px solid var(--borde); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; background: var(--nude-suave); color: var(--texto); line-height: 1.5; }
.chip .ico { width: 16px; height: 16px; }
.punto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .campo > .etiqueta, fieldset > legend { font-weight: 500; color: var(--texto); font-size: 1rem; }
.campo .opcional { font-weight: 400; color: var(--texto-suave); font-size: 0.9375rem; }
.ayuda { color: var(--texto-suave); font-size: 0.9375rem; margin: 0; }
input[type='text'], input[type='tel'], input[type='email'], input[type='date'], input[type='time'], input[type='number'], input[type='password'],
input[type='search'], input[type='month'], input[type='url'], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--borde-fuerte); border-radius: var(--radio-sm);
  background: var(--blanco); font-size: 1rem; color: var(--texto); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237D5F33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input[type='file'] { width: 100%; min-height: 52px; padding: 8px; font-size: 0.9375rem; color: var(--texto-suave); border: 1px dashed var(--borde-fuerte); border-radius: var(--radio-sm); background: var(--blanco); cursor: pointer; }
input[type='file']::file-selector-button { min-height: 36px; margin-right: 10px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--nude-suave); color: var(--texto); font: inherit; font-weight: 500; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dorado-texto); box-shadow: 0 0 0 3px rgba(184, 146, 90, 0.22); }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--error); }
.error-campo { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: 0.9375rem; font-weight: 500; margin: 0; }
.error-campo::before { content: '!'; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.clave-caja { position: relative; }
.clave-caja input { padding-right: 52px; }
.ver-clave { position: absolute; top: 0; right: 0; width: 48px; height: 100%; min-height: 48px; display: grid; place-items: center; border: 0; background: none; color: var(--texto-suave); cursor: pointer; border-radius: 0 var(--radio-sm) var(--radio-sm) 0; }
.ver-clave:hover { color: var(--dorado-texto); }
.ver-clave svg { width: 22px; height: 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--dorado-texto); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opcion span { display: flex; align-items: center; gap: 6px; min-height: var(--toque); padding: 8px 18px; border: 1px solid var(--borde-fuerte); border-radius: 999px; background: var(--blanco); font-size: 1rem; transition: all 0.15s; }
.opcion input:checked + span { background: var(--texto); border-color: var(--texto); color: var(--marfil); }
.opcion input:focus-visible + span { outline: 2.5px solid var(--dorado-texto); outline-offset: 2px; }

/* ---------- Avisos ---------- */
.aviso { padding: 14px 16px; border-radius: var(--radio-sm); background: var(--nude-suave); color: var(--texto); font-size: 0.9375rem; display: flex; gap: 10px; }
.aviso .ico { width: 20px; height: 20px; margin-top: 2px; }
.aviso-error { background: var(--error-fondo); color: var(--error); }
.aviso-ok { background: var(--ok-fondo); color: var(--ok); }
.aviso-atencion { background: var(--aviso-fondo); color: var(--aviso); }

/* ---------- Diálogos y toasts ---------- */
.velo { position: fixed; inset: 0; z-index: 80; background: rgba(46, 36, 32, 0.42); display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: aparecer 0.18s ease-out; }
.dialogo {
  background: var(--marfil); width: 100%; max-width: 580px; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radio-lg) var(--radio-lg) 0 0; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--sombra-alta); animation: subir 0.22s ease-out;
}
.dialogo h2 { font-size: 1.7rem; }
.dialogo-cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex: none; }
.dialogo-cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px 6px; }
.dialogo-pie { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--borde); flex: none; }
@media (min-width: 640px) { .velo { align-items: center; padding: 24px; } .dialogo { border-radius: var(--radio-lg); padding: 28px; } }
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 96px; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--texto); color: var(--marfil); padding: 12px 18px; border-radius: 14px; box-shadow: var(--sombra-alta); font-size: 0.9375rem; animation: subir 0.2s ease-out; }
.toast.error { background: var(--error); }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Aparición lenta y elegante ---------- */
.revelar { opacity: 0; transform: translateY(18px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--retraso, 0s); }
.revelar.visible { opacity: 1; transform: none; }
.revelar-foto { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.2, .7, .2, 1); }
.revelar-foto.visible { clip-path: inset(0 0 0 0); }
.sin-js .revelar, .sin-js .revelar-foto { opacity: 1; transform: none; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar, .revelar-foto { opacity: 1; transform: none; clip-path: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Íconos lineales finos */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Estrellas (reseñas) */
.estrellas { display: inline-flex; gap: 2px; color: #9A6E22; vertical-align: -3px; }
.estrellas .ico { width: 18px; height: 18px; }
.estrellas .ico.llena { fill: #D9AE55; }
.estrellas .ico.vacia { color: #D6C6B4; }

/* Pendientes de la clienta: con ?pendientes=1 se resaltan para revisarlos con ella */
.ver-pendientes [data-pendiente] { outline: 2px dashed #C0602F; outline-offset: 3px; position: relative; }
.ver-pendientes [data-pendiente]::after { content: 'PENDIENTE: ' attr(data-pendiente); position: absolute; left: 0; top: 100%; z-index: 5; background: #C0602F; color: #fff; font: 600 11px/1.3 var(--fuente); padding: 2px 6px; border-radius: 4px; white-space: nowrap; letter-spacing: 0.02em; }

/* Logo original (circular) */
img[src*="logo-128"], img[src*="logo-256"] { border-radius: 50%; }
