/* ============================================================
   ESTILOS DE LA WEB  ·  Adry Fernández
   Colores principales (cambia solo estos valores):
   --bg      fondo azul marino
   --text    color del texto
   --muted   texto secundario (gris lavanda)
   --accent  azul claro de botones y palabras en cursiva
   ============================================================ */

  :root{
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);

    --bg: #191b39;
    --text: #f3f5fb;
    --muted: #a3a8c6;
    --accent: #c3dcf0;
    --accent-hover: #d8eaf8;
    --accent-ink: #141630;
    --line: rgba(243,245,251,0.14);
    --scrim: #0e1024;

    --f-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --f-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --pad: clamp(20px, 4.6vw, 56px);
    --cut: clamp(26px, 4.4vw, 60px);
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){ --bg: #191b39; --text: #f3f5fb; }
  }
  :root[data-theme="dark"]{ --bg: #191b39; --text: #f3f5fb; }

  html{ scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
  *, *::before, *::after{ box-sizing: inherit; }

  body{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .shell{ max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
  a{ color: inherit; }
  p{ margin: 0; }
  h1, h2, h3{ margin: 0; font-weight: 400; }
  em{ font-style: italic; color: var(--accent); }

  .mono{
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
  }

  :focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

  /* ---------- top bar ---------- */
  .topbar{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding-top: 30px;
  }

  /* ---------- hero ---------- */
  .hero{
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 36px 56px;
    align-items: end;
    padding-top: clamp(40px, 6vw, 76px);
  }
  h1{
    font-family: var(--f-serif);
    font-size: clamp(3.3rem, 9.4vw, 8.6rem);
    line-height: 0.93;
    letter-spacing: -0.028em;
  }
  .hero-side{ padding-bottom: 12px; }
  .lead{
    font-size: clamp(1.12rem, 1.8vw, 1.45rem);
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 18px;
  }
  .sub{ color: var(--muted); font-size: 1rem; max-width: 42ch; margin-bottom: 22px; }
  .note{
    display: flex; align-items: center; gap: 10px;
    font-size: 0.92rem; margin-bottom: 18px;
  }
  .note i{ width: 7px; height: 7px; background: var(--accent); display: block; flex: none; }

  .btn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 20px 24px;
    text-decoration: none;
    transition: background .2s ease;
  }
  .btn:hover{ background: var(--accent-hover); }
  .btn svg{ flex: none; transition: transform .2s ease; }
  .btn:hover svg{ transform: translate(3px, -3px); }

  /* ---------- framed photos (clipped corner) ---------- */
  .frame{
    position: relative;
    margin-top: clamp(30px, 4vw, 54px);
    background: var(--scrim);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  }
  .frame img{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8.6;
    object-fit: cover;
    object-position: 50% 10%;
  }
  .frame.detail img{ aspect-ratio: 16 / 9; object-position: 50% 0%; }
  .frame::after{
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(14,16,36,0.85), rgba(14,16,36,0));
    pointer-events: none;
  }
  .cap{
    position: absolute; z-index: 1;
    left: 24px; right: 24px; bottom: 20px;
    display: flex; justify-content: space-between; gap: 16px;
  }
  .cap .mono{ color: #eef1fa; }

  .under{
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    padding: 22px 0 26px;
    color: var(--muted);
    font-size: 0.95rem;
  }
  .under a{
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); text-decoration: none; font-weight: 500;
    white-space: nowrap;
  }
  .under a:hover{ color: var(--accent); }

  /* ---------- sections ---------- */
  .sec{
    border-top: 1px solid var(--line);
    padding: clamp(64px, 9vw, 120px) 0;
  }
  .cols{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: 32px 64px;
  }
  .head .mono{ margin-bottom: 18px; display: block; }
  h2{
    font-family: var(--f-serif);
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .lede{ font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.65; max-width: 60ch; }
  .lede + .lede{ margin-top: 20px; color: var(--muted); }

  /* fit lists */
  .fit{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .fit h3{
    font-family: var(--f-mono);
    font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
  }
  .fit h3::before{ content: ""; width: 8px; height: 8px; display: block; flex: none; }
  .fit .yes h3::before{ background: var(--accent); }
  .fit .no h3::before{ border: 1px solid var(--muted); }
  .fit ul{ list-style: none; margin: 0; padding: 0; }
  .fit li{ padding: 16px 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
  .fit li:last-child{ border-bottom: 1px solid var(--line); }
  .fit .no li{ color: var(--muted); }

  /* steps */
  .steps{ list-style: none; margin: 0; padding: 0; }
  .steps li{
    display: grid;
    grid-template-columns: 48px minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 16px 28px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
  }
  .steps li:last-child{ border-bottom: 1px solid var(--line); }
  .steps h3{ font-family: var(--f-serif); font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.1; letter-spacing: -0.01em; }
  .steps p{ color: var(--muted); font-size: 1rem; }
  .steps .mono{ padding-top: 6px; color: var(--accent); }

  /* stats */
  .stats{
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
  }
  .stat{ border-top: 1px solid var(--line); padding-top: 18px; }
  .stat b{
    display: block;
    font-family: var(--f-serif); font-weight: 400;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1; letter-spacing: -0.02em;
    margin-bottom: 10px;
  }

  /* link rows */
  .links{ list-style: none; margin: 28px 0 0; padding: 0; }
  .links li{ border-top: 1px solid var(--line); }
  .links li:last-child{ border-bottom: 1px solid var(--line); }
  .links a{
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px;
    padding: 26px 0;
    text-decoration: none;
    font-family: var(--f-serif);
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    transition: color .2s ease;
  }
  .links a:hover{ color: var(--accent); }
  .links svg{ transition: transform .2s ease; }
  .links a:hover svg{ transform: translate(4px, -4px); }

  /* facts */
  .facts{ margin: 0; }
  .facts .row{
    display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px;
    padding: 20px 0; border-top: 1px solid var(--line);
  }
  .facts .row:last-child{ border-bottom: 1px solid var(--line); }
  .facts dt{ padding-top: 4px; }
  .facts dd{ margin: 0; font-size: 1.12rem; }

  .cta-wrap{ max-width: 440px; margin-top: 32px; }

  footer{
    border-top: 1px solid var(--line);
    padding: 36px 0 48px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
  }
  footer .name{ font-family: var(--f-serif); font-size: 1.5rem; }

  /* ---------- responsive ---------- */
  @media (max-width: 820px){
    .hero{ grid-template-columns: 1fr; }
    .cols{ grid-template-columns: 1fr; }
    .fit{ grid-template-columns: 1fr; }
    .steps li{ grid-template-columns: 40px minmax(0, 1fr); }
    .steps p{ grid-column: 2; }
    .facts .row{ grid-template-columns: 1fr; gap: 2px; }
  }
  @media (max-width: 560px){
    .frame img{ aspect-ratio: 4 / 4.6; object-position: 22% 8%; }
    .frame.detail img{ aspect-ratio: 4 / 3; object-position: 46% 50%; }
    .cap{ flex-direction: column; gap: 2px; left: 16px; right: 16px; bottom: 16px; }
    .under{ flex-direction: column; align-items: flex-start; }
    .stats{ grid-template-columns: 1fr; gap: 0; }
    .stat{ display: flex; align-items: baseline; gap: 18px; padding: 16px 0; }
    .stat b{ margin: 0; min-width: 3.2ch; }
  }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *{ transition: none !important; }
  }
