/* ==========================================================
   ANTAY PRODS — estilos (gama 4E · tipografía Geist)
   Modo claro de serie; modo oscuro solo si el visitante lo elige (botón).
   ========================================================== */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fff;
  --bg: #F1F0EA; --bg-2: #E7E6DF; --ink: #141416; --muted: #5A5A60; --line: #D2D1CA;
  --surface: #1A1A1E; --on-surface: #F1F0EA; --on-surface-muted: #A6A6AE;
  --btn: #C8F169; --btn-ink: #141416; --accent: #E8432E; --accent-text: #D23A26; --accent-on-surface: #FF6B57;
  --error: #B42318; --ok: #2F6B1E;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1240px;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.04em; line-height: 1; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.thin { font-weight: 200; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--btn); color: var(--btn-ink); font: 600 16px var(--font); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), filter 200ms; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg { transform: translateX(3px); } }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__list a:hover { color: var(--accent-text); }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font: 500 13px var(--mono); }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary svg { width: 12px; height: 12px; transition: transform .2s; }
.lang[open] > summary svg { transform: rotate(180deg); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.12); z-index: 60; }
.lang__menu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; }
.lang__menu a:hover, .lang__menu a[aria-current] { background: var(--bg); }
.lang__menu span { font: 500 12px var(--mono); color: var(--muted); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 4px; font-size: 22px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}
.lang-hint { position: fixed; z-index: 45; top: calc(var(--header-h) + 10px); right: max(16px, env(safe-area-inset-right, 0px)); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 40px rgba(0,0,0,.12); font-size: 14px; }
.lang-hint[hidden] { display: none; }
.lang-hint a { font-weight: 700; }
.lang-hint button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; }

/* Portada */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(50px, 8.4vw, 112px); line-height: .93; letter-spacing: -0.055em; }
.hero h1 .w-b { font-weight: 800; }
.hero h1 .w-t { font-weight: 200; }
.focus { --c: var(--accent); font-weight: 800; color: var(--accent-text); display: inline-block; padding: 0 .14em; margin-left: .04em;
  background: linear-gradient(var(--c),var(--c)) left top / .17em 3px no-repeat, linear-gradient(var(--c),var(--c)) left top / 3px .17em no-repeat,
              linear-gradient(var(--c),var(--c)) right top / .17em 3px no-repeat, linear-gradient(var(--c),var(--c)) right top / 3px .17em no-repeat,
              linear-gradient(var(--c),var(--c)) left bottom / .17em 3px no-repeat, linear-gradient(var(--c),var(--c)) left bottom / 3px .17em no-repeat,
              linear-gradient(var(--c),var(--c)) right bottom / .17em 3px no-repeat, linear-gradient(var(--c),var(--c)) right bottom / 3px .17em no-repeat; }
.hero__side { display: flex; flex-direction: column; gap: 24px; padding-bottom: 10px; max-width: 440px; }
.hero__side p { color: var(--muted); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero h1 > span { white-space: nowrap; display: inline-block; animation: rise 900ms var(--ease) both; }
.hero h1 > span:nth-child(2) { animation-delay: 80ms; } .hero h1 > span:nth-child(3) { animation-delay: 160ms; }
.hero__side { animation: rise 900ms 240ms var(--ease) both; }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } }
.reel { margin-top: clamp(32px, 5vw, 56px); padding-inline: calc((1 - var(--p, 0)) * max(16px, (100vw - var(--wrap)) / 2 + 16px)); }
.reel__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 8; max-height: 82vh; border-radius: calc((1 - var(--p, 0)) * 20px); overflow: hidden; background: var(--surface); border: 0; padding: 0; cursor: pointer; }
.reel__frame img, .reel__frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--p, 0) * .08)); }
.reel__frame video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.reel__frame video.is-ready { opacity: 1; }
.reel__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 45%); }
.reel__play { position: absolute; z-index: 1; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 600 16px var(--font); }
.reel__play i { width: 56px; height: 56px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; transition: transform 200ms var(--ease); }
.reel__frame:hover .reel__play i { transform: scale(1.06); }

/* Secciones */
.section { padding-block: clamp(80px, 10vw, 136px); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head h2 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 800; }
.section__head p { color: var(--muted); max-width: 42ch; }

/* Trabajos */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.work:first-child { grid-column: span 6; } .work:nth-child(2) { grid-column: span 3; } .work:nth-child(3) { grid-column: span 3; }
.works--4 .work:nth-child(1) { grid-column: span 7; } .works--4 .work:nth-child(2) { grid-column: span 5; }
.works--4 .work:nth-child(3) { grid-column: span 5; } .works--4 .work:nth-child(4) { grid-column: span 7; }
@media (max-width: 900px) { .work, .work:nth-child(n), .works--4 .work:nth-child(n) { grid-column: span 6; } .work:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .work:nth-child(n), .works--4 .work:nth-child(n) { grid-column: 1 / -1; } }
.work__media { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5; background: var(--surface); max-width: 100%; }
.work:first-child .work__media { aspect-ratio: auto; height: 100%; min-height: 320px; }
@media (max-width: 900px) { .work:first-child .work__media { aspect-ratio: 16 / 10; min-height: 0; } }
.work__media img, .work__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), opacity .4s; }
.work__media video { opacity: 0; }
.work.is-playing .work__media video { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .work:hover .work__media img, .work:hover .work__media video { transform: scale(1.04); } }
.work__tag { position: absolute; z-index: 1; left: 14px; top: 14px; background: var(--bg); color: var(--ink); padding: 6px 10px; border-radius: 999px; }
.work__body { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.work__title { display: block; font-size: clamp(21px, 2vw, 28px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.work__desc { display: block; color: var(--muted); font-size: 16px; margin-top: 6px; max-width: 46ch; }
.work__go { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, border-color .2s, transform 160ms var(--ease); }
.work:hover .work__go { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.work:active .work__go { transform: scale(.94); }

/* Servicios */
.band { background: var(--surface); color: var(--on-surface); }
.band .section__head p { color: var(--on-surface-muted); }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(241,240,234,.18); }
.service { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px 32px; align-items: baseline; padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid rgba(241,240,234,.18); position: relative; }
.service::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent-on-surface); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .service:hover::after { transform: scaleX(1); } }
.service h3 { font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; }
.service p { color: var(--on-surface-muted); }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.steps li::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
@media (hover: hover) {
  .steps:not(:has(li:hover)) li:first-child::after, .steps li:hover::after { transform: scaleX(1); }
}
@media (hover: none) {
  .steps li.is-on::after { transform: scaleX(1); }
  .steps:not(.js-steps) li:first-child::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .steps li::after { transition: none; } }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.steps h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.steps p { color: var(--muted); font-size: 16px; }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about__photo { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 20px; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo img.about__logo { width: 62%; height: auto; object-fit: contain; }
.about h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; margin-bottom: 22px; }
.about p { color: var(--muted); max-width: 52ch; }
.kit { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kit li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* Contacto */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(42px, 6vw, 84px); font-weight: 800; margin-bottom: 20px; }
.contact__lead { color: var(--muted); max-width: 40ch; }
.contact__mail { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.contact__mail a { font-weight: 600; }
.form { background: var(--bg); border-radius: 20px; padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,67,46,.25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 14px; }
.field__error:empty { display: none; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.form .btn { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; display: none; }
.form__status.is-ok { display: block; border: 1px solid var(--ok); color: var(--ok); }
.form__status.is-error { display: block; border: 1px solid var(--error); color: var(--error); }
.counter { float: right; font-weight: 400; color: var(--muted); font-size: 13px; }
#turnstile { grid-column: 1 / -1; }

/* Pie */
.footer { background: var(--surface); color: var(--on-surface-muted); padding-block: 48px; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a, .footer .linklike { text-decoration: none; color: var(--on-surface); }
.footer a:hover, .footer .linklike:hover { color: var(--accent-on-surface); }
.footer .linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Visor de vídeo */
dialog.viewer { border: 0; padding: 0; width: min(1100px, 100vw - 32px); max-height: 92vh; border-radius: 18px; background: #0E0E10; color: #F1F0EA; overflow: hidden; }
dialog.viewer::backdrop { background: rgba(10,10,12,.82); backdrop-filter: blur(4px); }
dialog.viewer video { width: 100%; max-height: 76vh; background: #000; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; }
.viewer__close { border: 0; background: #F1F0EA; color: #141416; border-radius: 999px; padding: 10px 16px; font: 600 14px var(--font); cursor: pointer; }

/* Cookies */
.cookie { position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.18); font-size: 15px; }
.cookie[hidden], .cookie__prefs[hidden] { display: none; }
.cookie h2 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.cookie p { color: var(--muted); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie__actions button { flex: 1 1 120px; min-height: 44px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--muted); }
.btn-solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.cookie__prefs { margin-top: 14px; display: grid; gap: 10px; }
.cookie__prefs label { display: flex; gap: 10px; align-items: flex-start; }
.cookie__prefs input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 3px; flex: none; }

/* Legales, 404, gracias */
.page { padding-block: 64px 96px; }
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 12px; }
.legal h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 2.2em 0 .6em; }
.legal p, .legal li { color: #2E2E33; }
.legal p { margin-bottom: 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-2); }
.updated { color: var(--muted); font-size: 15px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; margin-bottom: 16px; }
.notfound .lead { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.notfound__code { font: 800 clamp(90px, 20vw, 200px)/1 var(--font); letter-spacing: -0.06em; }
.notfound__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; align-items: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Formato vertical para redes */
.vertical__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 760px) { .vertical__grid { grid-template-columns: 1fr; } }
.vertical h2 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 800; margin-bottom: 20px; }
.vertical p { color: var(--muted); max-width: 42ch; margin-bottom: 28px; }
.phone { position: relative; justify-self: center; width: min(320px, 80vw); aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: var(--surface); border: 10px solid var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.phone__tag { position: absolute; left: 12px; bottom: 12px; background: var(--bg); color: var(--ink); padding: 6px 10px; border-radius: 999px; }

/* Trabajos: 2 horizontales (16:9) + 2 verticales (9:16), misma altura por fila */
.works--mix { grid-template-columns: minmax(0, 81fr) minmax(0, 175fr) minmax(0, 81fr); align-items: start; }
.works--mix .work:nth-child(n) { grid-column: auto; }
.works--mix .work .work__media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
.works--mix .work.work--v .work__media { aspect-ratio: 9 / 16; }
@media (min-width: 761px) {
  .works--mix { container-type: inline-size; --g: clamp(14px, 2vw, 24px); gap: var(--g); }
  .works--mix .work .work__media, .works--mix .work.work--v .work__media { aspect-ratio: auto; height: calc((100cqw - 2 * var(--g)) * 81 / 337 * 16 / 9); }
}
.works--mix .work.work--eventos { grid-column: 1 / 3; grid-row: 1; }
.works--mix .work.work--motor { grid-column: 3; grid-row: 1; }
.works--mix .work.work--vertical { grid-column: 1; grid-row: 2; }
.works--mix .work.work--negocios { grid-column: 2 / 4; grid-row: 2; }
.works--mix .work--v .work__desc { font-size: 15px; }
@media (max-width: 760px) {
  .works--mix { grid-template-columns: 1fr 1fr; }
  .works--mix .work.work--eventos, .works--mix .work.work--negocios { grid-column: 1 / -1; grid-row: auto; }
  .works--mix .work.work--motor, .works--mix .work.work--vertical { grid-column: auto; grid-row: auto; }
  .works--mix .work--eventos { order: 1; } .works--mix .work--negocios { order: 2; }
  .works--mix .work--motor { order: 3; } .works--mix .work--vertical { order: 4; }
  .works--mix .work--v .work__title { font-size: 19px; }
  .works--mix .work--v .work__go { width: 40px; height: 40px; }
}
/* Visor con vídeo vertical */
dialog.viewer.viewer--v { width: min(calc(76vh * 9 / 16), calc(100vw - 32px)); }
dialog.viewer.viewer--v video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 76vh; }

/* Tarjeta Dietarium (proyecto aparte) */
.dietarium { padding-top: 0; }
.dcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(22px, 3.5vw, 40px); border-radius: 22px; background: var(--surface); color: var(--on-surface); text-decoration: none; transition: transform 300ms var(--ease); }
.dcard:hover { transform: translateY(-3px); }
.dcard__ico { width: 64px; height: 64px; border-radius: 18px; background: #1F6B43; color: #fff; display: grid; place-items: center; }
.dcard__ico svg { width: 32px; height: 32px; }
.dcard__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--on-surface-muted); }
.dcard__tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(241,240,234,.28); }
.dcard__title { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.035em; margin: 8px 0 6px; }
.dcard__p { display: block; color: var(--on-surface-muted); max-width: 60ch; }
.dcard__btn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dcard__note { font-size: 13px; color: var(--on-surface-muted); }
@media (max-width: 760px) { .dcard { grid-template-columns: 1fr; } .dcard__ico { width: 52px; height: 52px; } }
.about__photo--me { background: #E7E6DF; }

/* ---------- Modo oscuro (solo si el visitante lo elige; de serie, claro) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121214; --bg-2: #1B1B1F; --ink: #F1F0EA; --muted: #A6A6AE; --line: #2C2C32;
  --surface: #1F1F24; --on-surface: #F1F0EA; --on-surface-muted: #A6A6AE;
  --accent: #FF6B57; --accent-text: #FF6B57; --accent-on-surface: #FF6B57;
  --error: #FF8A7A; --ok: #9BDB6A; --paper: #1B1B1F;
}
:root[data-theme="dark"] .lang__menu, :root[data-theme="dark"] .lang-hint, :root[data-theme="dark"] .cookie { box-shadow: 0 18px 50px rgba(0,0,0,.5); }

/* ---------- WhatsApp ---------- */
.wa-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 16px var(--font); cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s; }
.wa-btn:hover { border-color: #25D366; background: rgba(37,211,102,.08); }
.wa-btn svg { width: 20px; height: 20px; color: #25D366; flex: none; }
.contact__wa { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wa-float { display: none; }
@media (max-width: 760px) {
  .wa-float { display: grid; place-items: center; position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; }
  .wa-float svg { width: 28px; height: 28px; }
  .cookie:not([hidden]) ~ .wa-float { display: none; }
}

/* Logo según el modo */
.logo--oscuro { display: none; }
:root[data-theme="dark"] .logo--claro { display: none; }
:root[data-theme="dark"] .logo--oscuro { display: block; }

/* Botón claro / oscuro */
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Cabecera: menú, botón e idioma pegados a la derecha */
.header .nav { margin-left: auto; }
.tools { display: flex; align-items: center; gap: 10px; }
