/* alexsaumell.com · web personal de Alex Saumell
   Estilo de las webs de Dan Martell y Hormozi que eligió Alex (20-10-2026): fondo negro, titulares estrechos en
   mayúsculas, un acento cian, fotos grandes y bloques limpios. Nada de efectos de fondo. Un solo tema, oscuro. */

@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Layout: bloques a todo lo ancho que alternan negro y azul noche; texto en una columna de 1200 px; cada bloque, un
   titular estrecho y un botón. */
:root {
  --black: #000000;
  --night: #04121f;
  --blue: #062a4d;
  --ink: #ffffff;
  --ink-2: #c3ccd6;
  --ink-3: #7d8896;
  --cyan: #35d8fa;
  --line: #1c2733;

  --f-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif-condensed, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-hero: clamp(3.4rem, 1.4rem + 6.4vw, 7.6rem);
  --fs-h2: clamp(2.6rem, 1.4rem + 3.8vw, 5rem);
  --fs-h3: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
  --fs-lead: clamp(1.08rem, 0.98rem + 0.45vw, 1.35rem);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--f-body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(1200px + 64px); margin-inline: auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.92; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 0.98; }
.kicker { margin: 0 0 14px; color: var(--cyan); font-weight: 700; font-size: clamp(1rem, 0.92rem + 0.4vw, 1.25rem); }
.grey { color: #5d6875; }
.lead { margin: 0; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.lead strong { color: var(--ink); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--black); font-weight: 650; font-size: 0.98rem; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease, color 160ms ease; }
.btn:hover { transform: translateY(-1px); background: var(--cyan); }
.btn.cyan { background: var(--cyan); color: var(--black); }
.btn.cyan:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #ffffff59; }
.btn.ghost:hover { background: var(--ink); color: var(--black); box-shadow: none; }
.btn svg { width: 12px; height: 12px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Aviso superior y cabecera ---------- */

.topbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 9px 16px; background: linear-gradient(90deg, #062a4d, #0a4c80 50%, #062a4d); text-decoration: none; color: var(--ink); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar .short { display: none; }
.topbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tb-count { display: inline-flex; align-items: baseline; gap: 4px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tb-count[hidden] { display: none; }
.tb-count b { display: inline-grid; place-items: center; min-width: 2.1em; padding: 3px 5px; border-radius: 6px; background: #02091673; box-shadow: inset 0 0 0 1px #35d8fa33; font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.tb-count small { margin-right: 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: #cfe3f1; }
.tb-count small:last-child { margin-right: 0; }
.tb-cta { color: var(--cyan); }
.topbar:hover .tb-cta { text-decoration: underline; text-underline-offset: 4px; }

.site-head { background: var(--black); border-bottom: 1px solid #10161d; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { font-family: var(--f-head); font-weight: 800; font-size: 1.7rem; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav a:not(.btn) { color: var(--ink-2); font-size: 0.95rem; font-weight: 550; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 20px; }

/* ---------- Portada ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--black); }
.hero .photo { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(50%, 780px); }
.hero .photo img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
/* Luz cian detrás del recorte. */
.hero .photo::before { content: ""; position: absolute; z-index: -1; right: 8%; top: 12%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #35d8fa33 0%, #0a4c8033 40%, transparent 70%); filter: blur(10px); }
.hero .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000 0%, transparent 22%); }
.hero .wrap { min-height: clamp(560px, 72vh, 720px); display: flex; flex-direction: column; justify-content: center; padding-block: 72px; }
.hero-copy { max-width: 640px; display: grid; gap: 22px; }
.hero h1 { font-size: var(--fs-hero); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- ¿Por dónde empiezo? ---------- */

.paths { padding-block: clamp(72px, 9vw, 120px); background: linear-gradient(180deg, var(--blue) 0%, var(--night) 45%, var(--black) 100%); }
.paths .head { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: clamp(36px, 4vw, 56px); }
.paths .head p { margin: 0; color: var(--cyan); font-weight: 650; font-size: var(--fs-lead); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0b2a47 0%, #050c14 70%);
  box-shadow: inset 0 0 0 1px #ffffff12;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #35d8fa66, 0 24px 60px #000c; }
.card.b { background: linear-gradient(160deg, #13253a 0%, #05090f 70%); }
.card.c { background: linear-gradient(160deg, #1d1630 0%, #07060c 70%); }
/* La palabra grande de fondo hace de textura. */
/* La palabra de fondo hace de textura (sutil, como antes) y va entre el título y el texto, con la misma separación en
   las tres tarjetas (Alex, 20-10); el botón baja al pie para que los tres queden alineados. */
.card { container-type: inline-size; }
.card .mark { display: block; margin: 16px 0 20px; font-family: var(--f-head); font-weight: 800; font-size: 25cqi; line-height: 0.72; text-transform: uppercase; color: #ffffff0f; white-space: nowrap; pointer-events: none; }
.card .arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #35d8fa22; color: var(--cyan); }
.card .arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 18px; }
.card:hover .mark { color: #ffffff17; }
.card p { margin: 0 0 22px; color: var(--ink-2); font-size: 1.02rem; }
.card .btn { align-self: flex-start; margin-top: auto; min-height: 42px; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* ---------- Sobre mí ---------- */

.about { position: relative; isolation: isolate; overflow: hidden; background: var(--black); }
.about .photo { position: absolute; z-index: -1; top: 48px; right: max(0px, calc((100vw - 1400px) / 2)); bottom: 0; width: min(54%, 760px); }
.about .photo img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
/* Foto con fondo (la terraza): ocupa la mitad derecha y se funde con el negro por la izquierda y por abajo. */
.about .photo.scene { top: 50%; bottom: auto; right: max(24px, calc((100vw - 1400px) / 2)); width: min(48%, 680px); aspect-ratio: 1400 / 1036; transform: translateY(-50%); }
.about .photo.scene img { object-fit: cover; object-position: 60% 40%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%); mask-composite: intersect; }
.about .photo.scene::after { display: none; }
.about .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, transparent 35%), linear-gradient(0deg, #000 0%, transparent 25%); }
.about .wrap { padding-block: clamp(80px, 10vw, 140px); }
.story { max-width: 580px; display: grid; gap: 14px; }
.story h2 { margin-bottom: 10px; }
.story p { margin: 0; font-size: 1.06rem; color: #8b96a3; }
.story p.hi { color: var(--ink); }
.story .btn { justify-self: start; margin-top: 12px; }

/* ---------- Bloques con texto a un lado ---------- */

.block { padding-block: clamp(72px, 9vw, 120px); }
.block .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.block .copy { display: grid; gap: 16px; justify-items: start; }
.block .copy .btn { margin-top: 6px; }
.block.right .copy { order: 2; }

.list .copy { max-width: 560px; justify-self: end; }
/* La fecha de apertura, grande y en hueco: el dato que importa del bloque. */
.date { display: grid; justify-items: start; line-height: 0.8; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; }
.date b { font-size: clamp(9rem, 4rem + 14vw, 17rem); color: transparent; -webkit-text-stroke: 2px var(--cyan); letter-spacing: -0.01em; }
.date span { margin-top: 10px; font-size: clamp(2.4rem, 1.4rem + 3vw, 4.4rem); color: var(--ink); letter-spacing: 0.02em; }
.date em { margin-top: 14px; font-family: var(--f-body); font-style: normal; font-weight: 600; font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.list .note { margin: 0; font-size: 0.9rem; color: var(--ink-3); }

/* La formación como un libro: portada diseñada por Codex (marca-personal/web/portada/), lomo de páginas, sello de
   «7 días gratis» y un giro en 3D que sigue al ratón (animaciones.js). */
.book { position: relative; justify-self: center; width: min(100%, 360px); padding: 24px 0 48px; perspective: 1300px; }
.book-3d { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -24deg)) rotateX(var(--rx, 4deg)); transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.book.live .book-3d { transition: transform 140ms linear; }
.cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 1680;
  border-radius: 4px 12px 12px 4px;
  background: #020916;
  box-shadow: inset 0 0 0 1px #35d8fa4d, 0 60px 90px #000, 0 0 60px #35d8fa1f;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* Pliegue del lomo sobre la imagen. */
.cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: linear-gradient(90deg, #00000080, #ffffff14 60%, transparent); pointer-events: none; }
.cover .sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent calc(var(--sx, 30%) - 18%), #ffffff2e var(--sx, 30%), transparent calc(var(--sx, 30%) + 18%)); mix-blend-mode: screen; }
/* El canto de las páginas, girado hacia atrás desde el borde derecho. */
.pages { position: absolute; top: 4px; bottom: 4px; left: 100%; width: 26px; transform-origin: left center; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #eef2f5 0 1px, #c3ccd4 1px 3px); border-radius: 0 3px 3px 0; }
.seal {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -8%;
  display: grid;
  place-content: center;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a8f4ff, #35d8fa 45%, #0b98cf);
  color: #020916;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(12deg);
  box-shadow: 0 14px 34px #000a, inset 0 0 0 3px #ffffff66;
}
.seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed #02091666; }
.seal b { display: block; font-size: 2.9rem; line-height: 0.8; }
.floor { position: absolute; left: 6%; right: 6%; bottom: 10px; height: 36px; border-radius: 50%; background: radial-gradient(ellipse at center, #35d8fa40, transparent 70%); filter: blur(10px); }
@media (prefers-reduced-motion: no-preference) {
  .seal { animation: seal 5s ease-in-out infinite alternate; }
  @keyframes seal { to { transform: rotate(4deg) translateY(-6px); } }
}

.company { background: linear-gradient(90deg, #04121f 0%, #062a4d 100%); position: relative; overflow: hidden; isolation: isolate; }
.company .year { position: absolute; z-index: -1; right: max(24px, calc((100vw - 1264px) / 2)); bottom: clamp(20px, 3vw, 40px); font-family: var(--f-head); font-weight: 800; font-size: clamp(9rem, 5rem + 13vw, 20rem); line-height: 0.8; color: #ffffff1c; }
/* El año entra una sola vez desde la derecha, un tramo corto, y se queda en su sitio (animaciones.js). */
@media (prefers-reduced-motion: no-preference) {
  .js .company .year { opacity: 0; transform: translateX(70%); transition: transform 2.4s cubic-bezier(.25, .8, .25, 1), opacity 1.4s ease; }
  .js .company.in .year { opacity: 1; transform: none; }
}
.company .copy { max-width: 620px; }

.video .frame {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1b2c, #000);
  box-shadow: inset 0 0 0 1px #ffffff1a, 0 30px 70px #000;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.video .frame img { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; opacity: 0.55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.video .play { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--ink); color: var(--black); box-shadow: 0 10px 30px #000a; transition: transform 200ms ease, background-color 200ms ease; }
.video .play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 4px; }
.video .frame:hover .play { transform: scale(1.06); background: var(--cyan); }
.video .handle { position: absolute; left: 18px; bottom: 16px; font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Pie ---------- */

.site-foot { border-top: 1px solid var(--line); padding-block: 44px max(36px, env(safe-area-inset-bottom, 0px)); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.site-foot .logo { font-size: 1.5rem; }
.site-foot .tag { margin: 6px 0 0; color: var(--cyan); font-size: 0.9rem; font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-foot .social { gap: 12px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #0d141c; box-shadow: inset 0 0 0 1px #ffffff1a; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.social a:hover { background: var(--cyan); color: var(--black); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.site-foot a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.site-foot a:hover { color: var(--ink); }
.site-foot .legal { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid #10161d; color: var(--ink-3); font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ---------- Móvil ---------- */

@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero .photo { position: relative; width: 100%; height: 80vw; max-height: 480px; }
  .hero .photo img { object-position: center bottom; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .hero .photo::after { background: linear-gradient(0deg, #000 0%, #00000080 30%, transparent 60%); }
  .hero .wrap { min-height: 0; padding-block: 8px 64px; margin-top: -90px; position: relative; }
  .hero { display: flex; flex-direction: column; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 300px; }
  .about .photo { position: relative; top: auto; width: min(100%, 480px); margin: 0 auto -24px; right: auto; }
  .about .photo img { height: auto; }
  .about .photo.scene { top: auto; right: auto; transform: none; width: min(88%, 520px); margin: 0 auto -24px; aspect-ratio: auto; }
  .about .photo.scene img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%); }
  .topbar { gap: 6px 12px; font-size: 0.72rem; letter-spacing: 0.08em; }
  .topbar .long, .tb-cta { display: none; }
  .topbar .short { display: inline; }
  .tb-count b { font-size: 1rem; }
  .date b { font-size: 7rem; }
  .date span { font-size: 2.2rem; }
  .about .photo::after { background: linear-gradient(0deg, #000 0%, transparent 35%); }
  .about { display: flex; flex-direction: column-reverse; }
  .about .wrap { padding-bottom: 24px; }
  .block .grid { grid-template-columns: minmax(0, 1fr); }
  .block.right .copy { order: 0; }
  .list .copy { justify-self: start; }
  .book { width: min(78%, 300px); }
  .seal { width: 88px; right: -10%; }
  .seal b { font-size: 2.3rem; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Páginas de texto (aviso legal, privacidad, 404) ---------- */

.page { padding-block: clamp(56px, 8vw, 104px); }
.page .wrap { max-width: calc(760px + 64px); }
.page h1 { font-size: clamp(3rem, 1.8rem + 4vw, 5.2rem); }
.page h2 { margin-top: 44px; font-size: var(--fs-h3); }
.page .updated { margin: 16px 0 0; color: var(--ink-3); font-size: 0.92rem; }
.page p, .page ul { margin: 14px 0 0; color: var(--ink-2); }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 6px; }
.page strong { color: var(--ink); font-weight: 650; }
.page a:not(.btn) { color: var(--cyan); text-underline-offset: 3px; }
.page .actions { margin-top: 32px; }
