/* Web PERSONALIZADOS · Matías Bertoni Personal Trainer. Pensada primero para el celular.
   Marino, blanco y azul (como la app); la palabra PERSONALIZADOS en itálica extra bold, como en sus portadas. */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: italic; font-display: swap; src: url(/fonts/montserrat-latin-800-italic.woff2) format("woff2"); }

:root {
  --marino: #0a1426; --marino-2: #13213b; --azul: #1d5fc2; --azul-claro: #7cb8ff; --texto: #13213b; --suave: #4a5a73;
  --gris: #f2f5f9; --linea: #d9e1eb; --blanco: #fff; --verde: #157a40; --wa: #1d8f4e; --error: #b42318;
  --radio: 14px; --ancho: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: var(--blanco); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 76px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--blanco); padding: 10px 14px; z-index: 50; }
.saltar:focus { left: 8px; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(10, 20, 38, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.marca, .marca-pie { font-weight: 800; font-style: italic; letter-spacing: .01em; color: var(--blanco); text-decoration: none; font-size: 1.05rem; }
.barra nav { display: none; gap: 20px; margin-left: auto; }
.barra nav a { color: #c9d6e8; text-decoration: none; font-weight: 600; font-size: .92rem; }
.barra nav a:hover { color: var(--blanco); }
.ingresar { margin-left: auto; color: var(--blanco); border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.ingresar:hover { background: rgba(255,255,255,.1); }
@media (min-width: 860px) { .barra nav { display: flex; } .ingresar { margin-left: 8px; } .barra { padding: 12px 32px; } }

/* Portada */
.portada { position: relative; background: var(--marino); color: var(--blanco); overflow: hidden; display: flex; flex-direction: column; }
/* En el celular: la foto arriba (se ve la cara) y el texto abajo, sobre marino. */
.portada-foto { width: 100%; height: 42svh; min-height: 260px; max-height: 480px; object-fit: cover; object-position: 50% 36%; }
.portada::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: min(42svh, 480px); min-height: 260px; background: linear-gradient(180deg, rgba(10,20,38,0) 55%, var(--marino) 100%); pointer-events: none; }
.portada-texto { position: relative; z-index: 1; padding: 0 20px 32px; margin-top: -56px; width: 100%; max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.etiqueta { margin: 0 0 10px; color: var(--azul-claro); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 8.5vw, 3.4rem); line-height: 1.08; font-weight: 800; font-style: italic; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
h1 span { color: var(--azul-claro); }
.bajada { margin: 14px 0 22px; font-size: 1.05rem; color: #dbe5f2; max-width: 34em; }
.acciones { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.sedes-linea { margin: 18px 0 0; letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: #c9d6e8; }
@media (min-width: 900px) {
  .portada { min-height: 720px; justify-content: center; }
  /* La foto ocupa todo el lado derecho, de borde a borde, cortada en la cintura; el borde izquierdo se funde con el marino. */
  .portada-foto { position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: min(60%, 820px); height: 100%; max-height: none; object-position: 50% 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .portada::after { display: none; }
  .portada-texto { padding: 64px 32px; margin-top: 0; } .portada-texto > * { max-width: 560px; }
  .acciones { flex-direction: row; max-width: none; }
}

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--azul); color: var(--blanco); font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; text-align: center; }
.boton:hover { filter: brightness(1.07); }
.boton-wa { background: var(--wa); }
.boton-borde { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.portada .boton-borde { color: var(--blanco); }
.boton[disabled] { opacity: .6; cursor: wait; }

/* Bloques */
.bloque { padding: 48px 20px; }
.bloque > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.gris { background: var(--gris); }
h2 { font-size: clamp(1.55rem, 6vw, 2.1rem); line-height: 1.15; margin: 0 auto 14px; font-weight: 800; font-style: italic; color: var(--marino); }
h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--marino); }
.intro { color: var(--suave); margin-top: 0; margin-bottom: 22px; }
.nota { color: var(--suave); font-size: .92rem; margin-top: 16px; }
.sin-datos { margin: 0; padding: 14px 20px; background: #fff7e6; color: #6b4a00; text-align: center; }

.pasos { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: paso; }
.pasos li { counter-increment: paso; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--linea); border-radius: var(--radio); }
.pasos li::before { content: counter(paso); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--marino); color: var(--blanco);
  display: grid; place-items: center; font-weight: 800; font-style: italic; }
.pasos p { margin: 0; color: var(--suave); }

.tarjetas, .sedes { display: grid; gap: 14px; }
@media (min-width: 760px) { .tarjetas { grid-template-columns: repeat(3, 1fr); } .sedes { grid-template-columns: repeat(2, 1fr); } .pasos { grid-template-columns: repeat(3, 1fr); } }
.tarjeta, .sede { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; }
.tarjeta p, .sede p { margin: 0 0 10px; color: var(--suave); }
.tarjeta .dato { font-weight: 600; color: var(--texto); }
.enlace { font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; }
.enlace::after { content: " →"; }
.direccion { font-weight: 600; color: var(--texto) !important; }
.lugar { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--verde) !important; }
.lugar .punto { width: 10px; height: 10px; border-radius: 50%; background: var(--verde); flex: none; }
.lugar.lleno { color: var(--suave) !important; font-weight: 400; }
.chicos { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chicos li { background: var(--gris); border-radius: 999px; padding: 4px 10px; font-size: .84rem; color: var(--suave); }

#online-detalle ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
#online-detalle li { padding-left: 28px; position: relative; }
.lista-si li::before { content: "✓"; position: absolute; left: 4px; color: var(--verde); font-weight: 800; }
.lista-no li { color: var(--suave); font-size: .92rem; }
.lista-no li::before { content: "–"; position: absolute; left: 6px; }
#online .boton-borde { color: var(--marino); margin-top: 6px; }

.yo { display: grid; gap: 18px; align-items: center; }
.yo img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.yo p { margin: 0 0 10px; }
@media (min-width: 760px) { .yo { grid-template-columns: 200px 1fr; } .yo img { width: 200px; height: 200px; } }

.preguntas details { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); margin-bottom: 10px; }
.preguntas summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; color: var(--marino); list-style: none; position: relative; min-height: 52px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 1.3rem; color: var(--azul); }
.preguntas details[open] summary::after { content: "–"; }
.preguntas p { margin: 0; padding: 0 18px 16px; color: var(--suave); }

/* Formulario */
.consulta { background: var(--marino); color: var(--blanco); }
.consulta h2, .consulta h3 { color: var(--blanco); }
.consulta .intro { color: #c9d6e8; }
form, .gracias { max-width: 560px !important; }
.campo { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.campo label, legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; padding: 0; }
.opcional { font-weight: 400; color: #9fb2cc; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; /* sin zoom en iPhone */ color: var(--texto); background: var(--blanco); border: 1.5px solid var(--linea);
  border-radius: 10px; padding: 12px 14px; min-height: 48px; }
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: #ff8a80; box-shadow: 0 0 0 2px #ff8a80; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 600; cursor: pointer; min-height: 44px; }
.opciones input { width: auto; min-height: 0; margin: 0; accent-color: var(--azul); }
.opciones label:has(input:checked) { background: var(--azul); border-color: var(--azul); }
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #c9d6e8; margin: 6px 0 16px; }
.acepto input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 1px; accent-color: var(--azul); }
.acepto a { color: var(--azul-claro); }
.error { color: #ffb4ab; margin: 6px 0 0; font-size: .9rem; font-weight: 600; }
#form-error { margin: 0 0 12px; }
form .boton { width: 100%; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gracias { background: var(--marino-2); border-radius: var(--radio); padding: 22px; }
.gracias p { color: #dbe5f2; }

/* Pie */
.pie { background: #060d19; color: #9fb2cc; padding: 36px 20px calc(96px + env(safe-area-inset-bottom)); text-align: center; font-size: .92rem; }
.pie p { margin: 0 0 6px; }
.marca-pie { font-size: 1.3rem; }
.pie nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 14px; }
.pie a { color: #c9d6e8; text-decoration: none; padding: 8px 0; display: inline-block; }
.pie a:hover { color: var(--blanco); text-decoration: underline; }

.wa-flotante.oculto { opacity: 0; pointer-events: none; transform: scale(.8); }
.wa-flotante { transition: opacity .2s, transform .2s; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--blanco);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.28); }

/* Páginas de texto (privacidad) */
.texto { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.texto h1 { font-size: 1.9rem; color: var(--marino); text-shadow: none; margin-bottom: 16px; }

/* Enlaces con logo (WhatsApp, Instagram) */
a.con-icono, .pie a.con-icono { display: inline-flex; align-items: center; gap: 8px; }
.con-icono .ico { flex: none; width: 20px; height: 20px; }
.pie a.con-icono[hidden] { display: none; }
