/* FYXER · prototipo web (ECLEP Studio).
   Profesional como una clínica moderna, cercano para el paciente: carbón, blanco cálido, gris y lima como acento.
   Manrope (títulos y texto). Mobile-first. */
:root {
  --carbon: #101211; --carbon-2: #1c1f1d; --blanco: #f7f6f2; --papel: #efede6; --gris: #6b6f6b; --gris-2: #9a9d98; --linea: #e2e0d8;
  --lima: #d8f36a; --lima-2: #c6e34f; --menta: #e9f2e4; --ok: #2f6b3a;
  --pad: clamp(18px, 4vw, 56px); --ancho: 1240px; --radio: 22px; --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--blanco); color: var(--carbon); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lima-2); outline-offset: 3px; border-radius: 8px; }
.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.ceja { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.ceja i { width: 8px; height: 8px; border-radius: 99px; background: var(--lima-2); }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; transition: transform .2s var(--ease), background .25s, box-shadow .25s; }
.boton:active { transform: scale(.97); }
.boton.lima { background: var(--lima); color: var(--carbon); } .boton.lima:hover { background: var(--lima-2); }
.boton.carbon { background: var(--carbon); color: var(--blanco); } .boton.carbon:hover { background: var(--carbon-2); }
.boton.borde { box-shadow: inset 0 0 0 1.5px currentColor; } .boton.borde:hover { background: rgba(16,18,17,.05); }
.boton svg { width: 18px; height: 18px; }
.demo { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: #fff3c4; color: #6b5300; }
.aparece { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.aparece.visto { opacity: 1; transform: none; }

/* ---------- cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(247,246,242,.86); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.cab.borde { border-color: var(--linea); }
.cab .envoltura { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marca { display: inline-flex; align-items: center; gap: 10px; }
.marca svg { height: 30px; width: auto; }
.cab nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--carbon-2); }
.cab nav a:hover, .cab nav a[aria-current="page"] { color: var(--carbon); text-decoration: underline; text-decoration-color: var(--lima-2); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cab .acciones { display: flex; gap: 10px; align-items: center; }
.cab .boton { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea); }

/* ---------- pie ---------- */
footer { background: var(--carbon); color: #c9ccc6; padding: 72px 0 32px; margin-top: 0; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer .marca svg { height: 32px; }
footer p.lema { margin-top: 18px; max-width: 34ch; color: #9ea29b; font-size: 15px; }
footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
footer li { list-style: none; font-size: 15px; line-height: 2; }
footer li a:hover { color: var(--lima); }
footer .legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid #2a2e2b; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7f837d; }

.aviso-proto { position: fixed; z-index: 60; right: 12px; bottom: 12px; opacity: .85; pointer-events: none; background: var(--carbon); color: var(--blanco); font-size: 12px; padding: 7px 12px; border-radius: 999px; }

@media (max-width: 900px) {
  .cab nav, .cab .acciones .borde { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .aparece { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- cuentas: entrar, panel, admin ---------- */
.cuenta { padding: clamp(32px, 5vw, 72px) 0 90px; }
.tarjeta-c { background: #fff; border-radius: 28px; box-shadow: 0 1px 0 var(--linea), 0 30px 60px -40px rgba(16,18,17,.35); padding: clamp(24px, 4vw, 44px); }
.campo { display: grid; gap: 6px; } .campo label { font-weight: 600; font-size: 15px; } .campo small { color: var(--gris); font-size: 13px; }
.campo input, .campo select, .campo textarea { min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--linea); background: var(--blanco); font-size: 16px; font-family: inherit; }
.campo textarea { padding: 14px 16px; min-height: 96px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--carbon); }
.form-g { display: grid; gap: 16px; }
.msg-c { font-size: 14px; min-height: 20px; } .msg-c.ok { color: var(--ok); } .msg-c.error { color: #9b3b2a; }
.aviso-demo { background: #fff3c4; color: #6b5300; border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.separador { display: flex; align-items: center; gap: 12px; color: var(--gris-2); font-size: 13px; } .separador::before, .separador::after { content: ''; height: 1px; flex: 1; background: var(--linea); }
.boton.google { background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); color: var(--carbon); width: 100%; }
.pestanas { display: grid; grid-template-columns: 1fr 1fr; background: var(--papel); border-radius: 999px; padding: 4px; }
.pestanas button { min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--gris); }
.pestanas button[aria-selected="true"] { background: #fff; color: var(--carbon); box-shadow: 0 1px 4px rgba(16,18,17,.1); }
.insignia { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.insignia.ok { background: var(--menta); color: var(--ok); } .insignia.pend { background: #f1efe8; color: var(--gris); } .insignia.mal { background: #fbe7e2; color: #9b3b2a; } .insignia.pro { background: var(--carbon); color: var(--lima); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; } .checks label { cursor: pointer; } .checks input { position: absolute; opacity: 0; }
.checks span { display: inline-block; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 600; font-size: 15px; }
.checks input:checked + span { background: var(--carbon); color: var(--blanco); box-shadow: none; }
.checks input:focus-visible + span { outline: 3px solid var(--lima-2); outline-offset: 2px; }
.interruptor { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.interruptor input { position: absolute; opacity: 0; }
.interruptor i { width: 52px; height: 30px; border-radius: 99px; background: var(--linea); position: relative; transition: background .2s; }
.interruptor i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.interruptor input:checked + i { background: var(--ok); } .interruptor input:checked + i::after { transform: translateX(22px); }
.interruptor input:focus-visible + i { outline: 3px solid var(--lima-2); outline-offset: 2px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
.tabla td { padding: 14px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla .boton { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* celular: los select se ajustaban al texto más largo y descuadraban la página */
select, input, textarea { max-width: 100%; min-width: 0; }
@media (max-width: 560px) { .filtros select { flex: 1 1 calc(50% - 5px); } .filtros #fTrat, .filtros #fCiudad { flex-basis: 100%; } }

/* ---------- carta holográfica (perfiles Ultimate), inspirada en Profile Card de React Bits ---------- */
.holo { --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%; --brillo: 0; position: relative; width: min(100%, 300px); aspect-ratio: 5/7; margin: 0 auto; border-radius: 22px; perspective: 900px; }
.holo .cuerpo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--carbon); color: #fff; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 30px 60px -28px rgba(16,18,17,.6), inset 0 0 0 1px rgba(216,243,106,.35); }
.holo.activa .cuerpo, .holo .cuerpo { transition: none; }
.holo .foto-h { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.holo .foto-h.ini { display: grid; place-items: center; font-size: 84px; font-weight: 800; color: var(--carbon); }
.holo .velo { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(16,18,17,.92) 100%); }
/* arcoíris holográfico que sigue al mouse */
.holo .iris { position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: calc(.25 + var(--brillo) * .45);
  background: repeating-linear-gradient(115deg, #d8f36a 0%, #8ef0d0 7%, #b9a8ff 14%, #ffd59e 21%, #d8f36a 28%);
  background-size: 300% 300%; background-position: var(--px) var(--py); filter: saturate(1.2);
  -webkit-mask: radial-gradient(circle at var(--px) var(--py), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%); mask: radial-gradient(circle at var(--px) var(--py), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%); }
.holo .reflejo { position: absolute; inset: 0; background: radial-gradient(circle at var(--px) var(--py), rgba(255,255,255,calc(var(--brillo) * .5)), transparent 45%); mix-blend-mode: overlay; }
.holo .datos-h { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 4px; }
.holo .datos-h b { font-size: 22px; letter-spacing: -.02em; }
.holo .datos-h small { color: #c9ccc6; font-size: 13px; }
.holo .sello { position: absolute; top: 14px; left: 14px; background: var(--lima); color: var(--carbon); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; }
.holo .verif-h { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.92); color: var(--ok); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; }
.holo.entra .cuerpo { animation: holoEntra 1.1s cubic-bezier(.2,.8,.2,1); }
@keyframes holoEntra { 0% { transform: rotateY(-28deg) rotateX(8deg) scale(.94); opacity: 0; } 60% { transform: rotateY(8deg) rotateX(-2deg); opacity: 1; } 100% { transform: rotateY(0) rotateX(0); } }
@media (prefers-reduced-motion: reduce) { .holo .cuerpo, .holo.entra .cuerpo { transition: none; animation: none; transform: none; } }

/* cinta de planes (todas las páginas públicas) */
.cinta-planes { display: block; text-align: center; background: var(--lima); color: var(--carbon); font-size: 14px; padding: 9px 16px; line-height: 1.35; }
.cinta-planes u { text-underline-offset: 3px; font-weight: 700; white-space: nowrap; } .cinta-planes:hover u { text-decoration-thickness: 2px; }

/* detalles del navegador con la marca */
::selection { background: var(--lima); color: var(--carbon); }
html { scrollbar-color: #b9bab2 transparent; accent-color: var(--carbon); }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
a:not(.boton):not(.marca) { text-underline-offset: 4px; }
.boton { transition: background .2s, color .2s, box-shadow .2s, transform .15s var(--ease); }
.tabla, .ph-card b, .plan .monto { font-variant-numeric: tabular-nums; }
.aparece { transform: translateY(14px); }

/* look 2026: botones menos "píldora", cinta oscura, texto con más carácter */
.boton { border-radius: 999px; font-weight: 600; }
.boton:active { transform: scale(.97); }
.cinta-planes { background: var(--carbon); color: var(--blanco); } .cinta-planes u { color: var(--lima); }
h1, h2, h3 { letter-spacing: -.035em; }

/* menú: nunca en dos líneas */
.cab nav a, .cab .acciones a { white-space: nowrap; }
@media (max-width: 1080px) { .cab nav { display: none; } }
