/* =========================================================
   que lo haga PABLITO. — Landing V1
   ========================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colores de marca */
  --yellow: #fbc21c;
  --yellow-hi: #fdd43c;      /* suelo de la foto */
  --yellow-lo: #f8bb16;      /* fondo superior de la foto */
  --amber: #c98700;
  --ink: #15120e;
  --ink-soft: #2a251e;
  --cream: #f5efe3;
  --cream-dim: rgba(245, 239, 227, .72);

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--yellow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--yellow); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
}
.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 1.1em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.topbar__cta:hover { background: var(--ink); color: var(--yellow); }

/* =========================================================
   1. HERO
   --W es el ancho de la fotografía; todo el hero se mide con él.
   ========================================================= */
.hero {
  /* calc(73vw - 234px): deja sitio a «Estudio creativo independiente» junto al punto del logotipo */
  --W: min(64vw, calc(73vw - 234px), calc((100svh - 250px) / .86), 1150px);
  --logo-size: calc(var(--W) * .68);
  --logo-top: calc(var(--W) * -.19);

  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--W) * .2 + 40px) 16px clamp(28px, 5svh, 56px);
  overflow: hidden;
  background:
    linear-gradient(to bottom, var(--yellow-lo) 0%, #f9be19 45%, #fbc828 68%, var(--yellow-hi) 100%);
}

.hero__scene {
  position: relative;
  width: var(--W);
  aspect-ratio: 3 / 2;
  flex: none;
}

.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__layer--photo { z-index: 1; }
.hero__layer--logo { z-index: 2; pointer-events: none; }
.hero__layer--cutout { z-index: 3; }

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* La foto se funde con el fondo para que el encuadre nunca se note */
.hero__layer--photo .hero__photo {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.hero__logo-wrap {
  position: absolute;
  left: 50%;
  top: var(--logo-top);
  translate: -48% 0;
  display: flex;
  align-items: flex-end;
}

.hero__logo {
  display: block;
  font-size: var(--logo-size);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--ink);
  white-space: nowrap;
}

.hero__tag {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  line-height: 1.75;
  text-transform: uppercase;
}
.hero__tag--desktop {
  position: absolute;
  left: 100%;
  bottom: 26%;
  margin-left: .8em;
  padding-bottom: 14px;
  font-size: clamp(10px, calc(var(--W) * .0125), 13px);
  white-space: nowrap;
}
.hero__tag--desktop::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.hero__tag--mobile { display: none; }

.hero__text {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3svh, 30px);
  margin-top: calc(var(--W) * -.035);
}

.wordmark {
  margin: 0;
  font-size: clamp(30px, calc(var(--W) * .066), 76px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.wordmark strong {
  font-weight: 900;
  letter-spacing: -.02em;
  margin-left: .12em;
}
.wordmark__dot { color: var(--amber); }

.services {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.services li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(16px, 2vw, 28px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.services li + li { border-left: 1px solid rgba(21, 18, 14, .28); }
.services svg {
  width: 30px;
  height: 30px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Entrada del hero --- */
@keyframes rise {
  from { opacity: 0; transform: translateY(var(--from, 24px)); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.js .hero__logo-wrap > * { animation: rise 1.3s var(--ease-out) .1s both; --from: 7%; }
.js .hero__tag--desktop { animation-delay: .7s; --from: 10px; }
.js .hero__layer--photo picture,
.js .hero__layer--cutout picture { animation: fade 1s ease-out both; }
.js .hero__text > * { animation: rise 1s var(--ease-out) both; --from: 14px; }
.js .wordmark { animation-delay: .45s; }
.js .hero__tag--mobile { animation-delay: .55s; }
.js .services { animation-delay: .65s; }
.js .topbar { animation: fade .8s ease-out .9s both; }

/* =========================================================
   2. PRESENTACIÓN
   ========================================================= */
.intro {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(96px, 16vw, 220px);
}

.intro__title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(42px, 7.4vw, 112px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.intro__title > span { display: block; }
.intro__accent { color: var(--yellow); margin-top: .12em; }

.intro__body {
  display: grid;
  gap: 1.1em;
  max-width: 34ch;
  margin: clamp(48px, 8vw, 104px) 0 0 auto;
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 350;
  line-height: 1.42;
  color: var(--cream-dim);
}
.intro__body p { margin: 0; }
.intro__body strong { color: var(--cream); font-weight: 600; }

/* =========================================================
   3. CONTACTO
   ========================================================= */
.contact {
  background: var(--yellow);
  padding-block: clamp(88px, 13vw, 180px);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.contact__title {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 96px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.contact__lead {
  margin: .9em 0 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
}
.contact__mail { margin: 1.6em 0 0; font-size: 18px; font-weight: 600; }
.contact__mail a { text-underline-offset: .2em; text-decoration-thickness: 1.5px; }

.form { display: grid; gap: 30px; }

.field { display: grid; gap: 8px; }
.field label,
.legal-layer summary {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.4; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 2px 0 var(--ink);
}
.field [aria-invalid="true"] { border-bottom-color: #9b1c00; }

.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}
.consent input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.consent input::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 1px;
  transform: scale(0);
  transition: transform .15s var(--ease-out);
}
.consent input:checked::after { transform: scale(1); }
.consent a { text-underline-offset: .18em; }

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 64px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font: inherit;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.button strong { font-weight: 900; letter-spacing: -.01em; }
.button:hover { background: #000; transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button:focus-visible { outline-color: var(--ink); outline-offset: 4px; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }

.form__status { margin: -10px 0 0; min-height: 1.5em; font-weight: 600; }
.form__status:empty { display: none; }
.form__status[data-state="error"] { color: #8a1900; }

.legal-layer {
  border-top: 1px solid rgba(21, 18, 14, .25);
  padding-top: 18px;
  font-size: 14px;
}
.legal-layer summary { cursor: pointer; list-style: none; }
.legal-layer summary::-webkit-details-marker { display: none; }
.legal-layer summary::after { content: " +"; }
.legal-layer[open] summary::after { content: " −"; }
.legal-layer dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 16px 0 0;
  line-height: 1.45;
}
.legal-layer dt { font-weight: 700; }
.legal-layer dd { margin: 0; }

/* =========================================================
   PIE
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--cream-dim);
  padding-block: 56px max(40px, env(safe-area-inset-bottom));
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px 40px;
  align-items: center;
}
.footer__logo {
  color: var(--cream);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  text-decoration: none;
}
.footer__logo span { color: var(--yellow); }
.footer__domains { margin: 0; letter-spacing: .04em; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--yellow); }
.footer__copy { margin: 0; }
.footer :focus-visible { outline-color: var(--yellow); }

/* =========================================================
   Apariciones al hacer scroll
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: auto 1fr; }
  .footer__nav, .footer__copy { grid-column: 1 / -1; }
}

/* Pantallas horizontales bajas (portátiles pequeños, móviles en horizontal) */
@media (max-height: 560px) and (min-width: 761px) {
  .hero { --W: min(64vw, calc(73vw - 234px), calc((100svh - 150px) / .86), 1150px); }
  .services li { font-size: 11px; }
  .services svg { width: 24px; height: 24px; }
}

/* Ventanas medianas: el texto lateral no cabe junto al logotipo y pasa debajo de la marca */
@media (min-width: 761px) and (max-width: 999px) {
  .hero { --W: min(64vw, calc((100svh - 280px) / .86), 1150px); }
  .hero__tag--desktop { display: none; }
  .hero__tag--mobile { display: block; font-size: 11px; letter-spacing: .3em; text-align: center; }
}
@media (min-width: 761px) and (max-width: 999px) and (max-height: 560px) {
  .hero { --W: min(64vw, calc((100svh - 170px) / .86), 1150px); }
}

/* Hero vertical: móviles y tabletas en vertical */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .hero {
    --W: min(120vw, calc((100svh - 300px) / .9 * 1.5));
    --logo-size: calc(var(--W) * .37);
    --logo-top: calc(var(--W) * -.2);
    padding: calc(var(--W) * .2 + 76px) 0 max(28px, env(safe-area-inset-bottom));
  }
  .hero__logo-wrap { translate: -50% 0; }
  .hero__tag--desktop { display: none; }
  .hero__tag--mobile { display: block; font-size: clamp(10.5px, 1.8vw, 14px); letter-spacing: .3em; text-align: center; }
  .hero__text { gap: 18px; margin-top: -3vw; padding-inline: 16px; }
  .wordmark { font-size: min(8.6vw, 64px); }
}

@media (max-width: 760px) {
  .services { width: 100%; max-width: 420px; justify-content: space-between; margin-top: 6px; }
  .services li {
    flex: 1 1 0;
    flex-direction: column;
    gap: 9px;
    padding: 0;
    font-size: 9.5px;
    letter-spacing: .16em;
  }
  .services li + li { border-left: 0; }
  .services svg { width: 26px; height: 26px; }

  .topbar__cta { font-size: 12px; padding: .5em 1em; }

  .intro__body { margin-left: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .button { justify-self: stretch; justify-content: center; }
  .legal-layer dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-layer dd + dt { margin-top: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Movimiento reducido: sin parallax ni animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__layer { will-change: auto; }
}

/* =========================================================
   Páginas legales
   ========================================================= */
.legal-page { background: var(--cream); }
.legal-page .legal-top {
  background: var(--yellow);
  padding: 28px var(--gutter);
}
.legal-page .legal-top a {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.05em;
  text-decoration: none;
}
.legal-page .legal-top a span { color: var(--amber); }
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 96px;
}
.legal-doc h1 {
  margin: 0 0 .6em;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.legal-doc h2 { margin: 2em 0 .5em; font-size: 22px; letter-spacing: -.01em; }
.legal-doc p, .legal-doc li { font-size: 16.5px; }
.legal-doc .todo { background: var(--yellow); padding: 0 .25em; font-weight: 600; }
.legal-doc .note {
  padding: 16px 20px;
  border-left: 4px solid var(--ink);
  background: rgba(251, 194, 28, .25);
}
