/* Dirección editorial de YLK: fotografía a sangre, azul profundo y tipografía sobria. */
:root {
  --studio-blue: #082579;
  --studio-white: #fff;
  --studio-gutter: clamp(22px, 2.65vw, 64px);
  --studio-header-height: 88px;
  --studio-admin-offset: 0px;
  --color-primary: var(--studio-blue);
  --color-primary-hover: #163d98;
  --radius: 0;
  --font-body: Arial, Helvetica, sans-serif;
}
html { scroll-behavior: smooth; }
html.is-menu-locked { overflow: hidden; overscroll-behavior: none; }
body.is-menu-locked { position: fixed; top: var(--studio-scroll-lock-top); left: 0; right: 0; overflow: hidden; }
body { -webkit-font-smoothing: antialiased; }
body.admin-bar { --studio-admin-offset: 32px; }
[hidden] { display: none !important; }
::selection { background: #dbe2ff; color: var(--studio-blue); }
.studio-home { flex: 1; }
.site-main { margin-top: var(--studio-header-height); }
.studio-home :focus-visible, .studio-footer :focus-visible { outline-color: currentColor; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--studio-blue); text-decoration: none; }
.brand:hover { color: var(--studio-blue); }
.brand__logo { display: block; width: clamp(150px, 11.2vw, 240px); height: auto; max-height: 64px; object-fit: contain; object-position: left center; }
.brand__text { font-size: clamp(16px, 1.45vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: 0.2em; text-transform: uppercase; }
.brand--white { color: #fff; }
.brand--white .brand__logo { filter: brightness(0) invert(1); }

/* Cabecera: menú abierto en portada, franja compacta al volver hacia arriba. */
.studio-header { position: fixed; z-index: 100; inset: var(--studio-admin-offset) 0 auto; min-height: var(--studio-header-height); background: #fff; color: var(--studio-blue); transition: transform 350ms ease, background-color 300ms ease, box-shadow 300ms ease; }
.studio-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: var(--studio-header-height); padding: 18px var(--studio-gutter); }
.studio-header--home { background: transparent; transition: transform 350ms ease; }
.studio-header--home:not(.is-scrolled) .studio-header__inner { align-items: flex-start; padding-top: clamp(26px, 2.8vw, 54px); }
.studio-navigation .menu { display: flex; gap: 26px; }
.studio-navigation a { display: inline-block; color: inherit; font-size: 14px; font-weight: 400; text-decoration: none; line-height: 1.4; }
.studio-navigation a::after { display: block; content: ""; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 250ms ease; }
.studio-navigation a:hover::after, .studio-navigation a:focus-visible::after, .studio-navigation .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.studio-navigation .sub-menu { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; padding: 0; }
.studio-navigation .sub-menu a { font-size: 12px; }
.studio-header--home:not(.is-scrolled) .studio-navigation { position: absolute; top: clamp(26px, 2.8vw, 54px); right: var(--studio-gutter); color: #fff; text-align: right; text-shadow: 0 1px 12px #0009; }
.studio-header--home:not(.is-scrolled) .menu { flex-direction: column; align-items: flex-end; gap: clamp(26px, 3vw, 58px); }
.studio-header.is-scrolled { background: #fff; box-shadow: 0 1px 0 #08257914; }
.studio-header.is-hidden { transform: translateY(calc(-100% - var(--studio-admin-offset) - 2px)); }
.studio-header--home.is-scrolled:not(.is-sticky-visible):not(.is-menu-open) { visibility: hidden; opacity: 0; pointer-events: none; transition: none; }
/* El panel también debe nacer oculto; no desvanecerse desde el menú de portada. */
.studio-header--home.is-scrolled:not(.is-menu-open) .studio-navigation { transition: none; }
.menu-toggle { position: relative; z-index: 2; display: none; width: 46px; height: 46px; padding: 10px 8px; border: 0; border-radius: 0; background: transparent; color: var(--studio-blue); }
.menu-toggle:hover { background: transparent; color: var(--studio-blue); }
.menu-toggle span { display: block; height: 1px; width: 28px; margin-block: 6px; background: currentColor; transition: transform 300ms ease, opacity 200ms ease, width 250ms ease; }
.menu-toggle span:nth-child(2) { width: 20px; margin-left: auto; }
.menu-toggle:hover span:nth-child(2) { width: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.studio-header--home.is-enhanced.is-scrolled .menu-toggle { display: block; }
.studio-header--home.is-enhanced.is-scrolled .studio-navigation { position: absolute; top: 100%; right: 0; width: 100%; height: calc(100vh - var(--studio-panel-top, var(--studio-header-height))); height: calc(100dvh - var(--studio-panel-top, var(--studio-header-height))); overflow-y: auto; overscroll-behavior: contain; padding: 36px var(--studio-gutter) 48px; background: #fff; color: var(--studio-blue); visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none; text-align: right; transition: opacity 220ms ease, transform 220ms ease, visibility 220ms; }
.studio-header.is-menu-open { background: #fff; }
.studio-header--home.is-enhanced.is-scrolled .menu { flex-direction: column; align-items: flex-end; gap: 28px; }
.studio-header--home.is-enhanced.is-scrolled.is-menu-open .studio-navigation { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.studio-menu-note { display: none; }
.studio-header--home.is-enhanced.is-scrolled .studio-navigation { display: flex; flex-direction: column; }
.studio-header--home.is-enhanced.is-scrolled .studio-navigation > .menu { align-self: flex-end; flex-shrink: 0; }
.studio-header--home.is-enhanced.is-scrolled .studio-menu-note { display: block; align-self: flex-start; flex-shrink: 0; max-width: 280px; margin-top: auto; padding-top: 60px; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 300ms ease; }
.studio-menu-note__label { display: block; color: #8a91a6; font-size: 9px; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; }
.studio-menu-note__label::before { display: block; width: 45px; height: 1px; margin-bottom: 20px; background: var(--studio-blue); content: ''; }
.studio-menu-note p { max-width: 260px; margin: 14px 0 20px; color: var(--studio-blue); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; font-weight: 400; }
.studio-navigation .studio-menu-note__contact { color: #666; font-size: 12px; line-height: 1.6; }
.studio-menu-note__contact > span { margin-left: 12px; color: var(--studio-blue); }
.studio-header--home.is-enhanced.is-scrolled.is-menu-open .studio-menu-note { opacity: 1; transform: none; transition-delay: 80ms; }

/* Portada y medios. */
.hero { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #141b2a; color: #fff; }
.hero::after { position: absolute; z-index: 1; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, #0000001a 0%, transparent 24%, transparent 70%, #00000030 100%); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide.is-active { animation: slide-enter 650ms ease both; }
.visual-media { position: absolute; inset: 0; overflow: hidden; background: #d6d8d4; }
.visual-media__image, .visual-media__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.visual-media__video { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; }
.visual-media__video.is-playing { opacity: 1; }
.visual-media--top > * { object-position: center top; }
.visual-media--bottom > * { object-position: center bottom; }
.visual-media--left > * { object-position: left center; }
.visual-media--right > * { object-position: right center; }
.hero__controls { position: absolute; z-index: 3; bottom: 34px; left: var(--studio-gutter); display: flex; align-items: center; gap: 4px; }
.hero__count { margin-right: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.arrow-button { display: grid; place-items: center; width: 40px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 25px; font-weight: 400; }
.arrow-button:hover { background: transparent; color: #fff; }
.arrow-button span { transition: transform 200ms ease; }
.arrow-button[data-prev]:hover span { transform: translateX(-4px); }
.arrow-button[data-next]:hover span { transform: translateX(4px); }
.scroll-cue { position: absolute; z-index: 3; right: var(--studio-gutter); bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 44px; color: #fff; font-size: 11px; line-height: 1.3; text-decoration: none; }
.scroll-cue:hover { color: #fff; }
.scroll-cue__mouse { position: relative; display: block; width: 25px; height: 38px; border: 1px solid #ffffffb3; border-radius: 18px; }
.scroll-cue__mouse::after { position: absolute; top: 9px; left: 11px; width: 1px; height: 9px; content: ""; background: #fff; animation: scroll-invite 2s ease-in-out infinite; }
.motion-toggle { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 8px 12px; border: 1px solid #ffffff70; background: var(--studio-blue); color: #fff; font-size: 11px; font-weight: 400; }
.motion-toggle:hover { background: #153988; }
.hero--empty { display: grid; align-content: center; justify-items: center; background: #e5e6e2; color: var(--studio-blue); }
.hero__empty-brand { max-width: 80%; text-align: center; font-size: clamp(28px, 7vw, 110px); letter-spacing: 0.18em; font-weight: 400; text-transform: uppercase; }
.hero__setup { position: relative; z-index: 3; margin-top: 30px; color: var(--studio-blue); font-size: 13px; }
.hero--empty .scroll-cue { color: var(--studio-blue); }
.hero--empty .scroll-cue__mouse { border-color: currentColor; }
.hero--empty .scroll-cue__mouse::after { background: currentColor; }
.studio-header--home:not(.is-scrolled):has(+ .studio-home .hero--empty) .studio-navigation { color: var(--studio-blue); text-shadow: none; }

/* Cinco filas. En escritorio todas tienen la proporción panorámica de la maqueta. */
.project-gallery { scroll-margin-top: var(--studio-header-height); }
.project-row { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); height: 56.25vw; }
.project-row--1 { --columns: 1; }
.project-row--2 { --columns: 2; }
.project-row--3 { --columns: 3; }
.project-piece { position: relative; min-width: 0; height: 100%; overflow: hidden; background: #d6d8d4; color: #fff; }
.project-piece__link { position: absolute; inset: 0; display: block; color: inherit; }
.project-piece__link:hover { color: #fff; }
.project-piece__link:focus-visible { z-index: 2; outline: 3px solid #fff; outline-offset: -8px; }
.project-piece__caption { position: absolute; inset: auto 0 0; padding: 70px var(--studio-gutter) 34px; text-align: right; background: linear-gradient(transparent, #0005); pointer-events: none; }
.project-piece__caption h2 { margin: 0; font-size: clamp(12px, 1.05vw, 18px); font-weight: 400; line-height: 1.4; }
.project-piece__caption p { margin: 5px 0 0; font-size: clamp(11px, 0.85vw, 14px); line-height: 1.4; opacity: 0.85; }
.project-piece .visual-media { transition: transform 900ms cubic-bezier(0.2, 0.65, 0.25, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-piece__link:hover .visual-media { transform: scale(1.035); }
}

/* Contacto y footer comparten un único campo azul. */
.contact-section { padding: clamp(64px, 6vw, 120px) clamp(30px, 5.25vw, 110px) clamp(170px, 17vw, 300px); background: var(--studio-blue); color: #fff; scroll-margin-top: var(--studio-header-height); }
.contact-session { display: flex; align-items: center; justify-content: center; width: clamp(280px, 28vw, 650px); max-width: 100%; min-height: clamp(56px, 4.2vw, 100px); padding: 14px 24px; border: 1px solid #fff; background: transparent; color: #fff; text-align: center; text-decoration: none; font-size: clamp(16px, 1.175vw, 23px); line-height: 1.3; transition: background 250ms ease, color 250ms ease; }
.contact-session:hover { background: #fff; color: var(--studio-blue); }
.contact-session:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.eyebrow { margin: 0; font-size: clamp(13px, 1.05vw, 19px); font-weight: 600; line-height: 1.4; letter-spacing: 0.32em; }
.contact-section__body { margin-top: 9.3vw; }
.contact-section__text { font-size: clamp(16px, 1.2vw, 22px); line-height: 1.5; text-align: justify; hyphens: auto; }
.contact-section__text p { margin-bottom: 0; }
.text-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: fit-content; margin: clamp(48px, 5.5vw, 105px) 0 0 auto; padding-block: 8px; border-bottom: 1px solid #ffffff7a; color: #fff; font-size: 11px; letter-spacing: 0.3em; text-decoration: none; }
.text-link:hover { color: #fff; border-color: #fff; }
.text-link span { display: inline-block; font-size: 24px; line-height: 1; transition: transform 250ms ease; }
.text-link:hover span { transform: translateX(5px); }
.studio-footer { padding: 36px var(--studio-gutter) 28px; background: var(--studio-blue); color: #fff; }
.studio-footer a { color: #fff; text-underline-offset: 4px; }
.studio-footer a:hover { color: #fff; }
.studio-footer .brand__logo { width: clamp(150px, 11.2vw, 240px); }
.studio-footer__main { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; padding-bottom: clamp(75px, 8vw, 155px); }
.newsletter { width: min(100%, 535px); }
.newsletter h2 { margin-bottom: 24px; font-size: clamp(16px, 1.2vw, 22px); font-weight: 400; line-height: 1.4; }
.newsletter__form #newsletter-name, .newsletter__form #newsletter-email { width: 100%; margin-bottom: 9px; padding: 12px 0 8px; border: 0; border-bottom: 1px solid #ffffff70; border-radius: 0; background: transparent; box-shadow: none; color: #fff; font-size: 14px; line-height: 1.5; }
.newsletter__form input::placeholder { color: #a0afd2; opacity: 1; }
.newsletter__form #newsletter-name:focus, .newsletter__form #newsletter-email:focus { outline: none; box-shadow: none; border-bottom-color: #fff; }
.newsletter .newsletter__form button, .newsletter .newsletter__form input[type="submit"] { width: 100%; margin-top: 14px; padding: 15px 20px; border: 1px solid #fff; border-radius: 0; background: var(--studio-blue); color: #fff; font-size: 11px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; transition: background 200ms ease, color 200ms ease; }
.newsletter .newsletter__form button:hover, .newsletter .newsletter__form input[type="submit"]:hover { background: #fff; color: var(--studio-blue); }
.newsletter .newsletter__form button:disabled { opacity: 1; }
.newsletter__legal { margin: 20px 0 0; font-size: 11px; line-height: 1.5; text-align: justify; }
.newsletter__status { margin: 12px 0 0; font-size: 12px; line-height: 1.5; }
.newsletter__status:empty { display: none; }
.newsletter .wpcf7 form { margin: 0; }
.newsletter__form { position: relative; }
.newsletter__form p { margin: 0; }
.newsletter__form br { display: none; }
.newsletter__form .wpcf7-form-control-wrap { display: block; }
.newsletter__form .wpcf7-spinner { position: absolute; right: 10px; bottom: 12px; margin: 0; }
.newsletter .wpcf7-not-valid-tip { margin: 2px 0 12px; color: #ffd8c8; font-size: 12px; line-height: 1.5; }
.newsletter .wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid currentColor; color: inherit; font-size: 12px; line-height: 1.6; }
.studio-footer--light .newsletter .wpcf7-not-valid-tip { color: #9d3025; }
.studio-footer__connections { display: flex; flex-direction: column; align-items: flex-end; gap: 38px; margin-left: auto; padding-bottom: 4px; }
.studio-footer__social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px 36px; }
.studio-footer__connections a, .footer-legal a { font-size: 12px; text-decoration: none; }
.studio-footer__connections a:hover, .footer-legal a:hover { text-decoration: underline; }
.claims-link { display: flex; align-items: center; gap: 16px; }
.studio-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 30px; border-top: 1px solid #ffffff26; }
.studio-footer__bottom p { margin: 0; font-size: 12px; line-height: 1.6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 36px; }

/* Versión blanca compartida por las páginas interiores que la utilizan. */
.studio-footer--light { background: #fff; color: var(--studio-blue); }
.studio-footer--light a, .studio-footer--light a:hover { color: inherit; }
.studio-footer--light .newsletter__form #newsletter-name,
.studio-footer--light .newsletter__form #newsletter-email { background: transparent; border-bottom-color: #777; color: var(--studio-blue); }
.studio-footer--light .newsletter__form input::placeholder { color: var(--studio-blue); }
.studio-footer--light .newsletter__form #newsletter-name:focus,
.studio-footer--light .newsletter__form #newsletter-email:focus { outline: none; border-bottom-color: var(--studio-blue); }
.studio-footer--light .newsletter .newsletter__form button, .studio-footer--light .newsletter .newsletter__form input[type="submit"] { border-color: #444; background: transparent; color: var(--studio-blue); }
.studio-footer--light .newsletter .newsletter__form button:hover, .studio-footer--light .newsletter .newsletter__form input[type="submit"]:hover { border-color: var(--studio-blue); background: var(--studio-blue); color: #fff; }
.studio-footer--light .studio-footer__bottom { border-top-color: #d0d0d0; }

/* El contenido sigue visible sin JavaScript o si el navegador no admite observers. */
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity 850ms ease, transform 850ms cubic-bezier(0.2, 0.65, 0.25, 1); }
.project-piece.reveal-ready { transform: none; }
.reveal-ready.is-visible { opacity: 1; transform: none; }
@keyframes slide-enter { from { opacity: 0.25; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes scroll-invite { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(7px); } }

@media (min-width: 1600px) {
  .newsletter { width: 29.3%; }
  .studio-footer__connections a, .footer-legal a, .studio-footer__bottom p { font-size: 14px; }
  .newsletter__legal { font-size: 12px; }
}
@media (max-width: 900px) {
  .contact-section__body { margin-top: 120px; }
  .studio-footer__main { gap: 40px; }
  .newsletter { width: 48%; }
  .studio-footer__social { flex-direction: column; align-items: flex-end; gap: 16px; }
  .studio-footer__bottom { align-items: flex-start; }
  .footer-legal { gap: 18px; }
}
@media (max-width: 782px) {
  body.admin-bar { --studio-admin-offset: 46px; }
}
@media (max-width: 700px) {
  :root { --studio-header-height: 76px; }
  .studio-header__inner { padding-block: 14px; }
  .brand__logo { max-width: 170px; max-height: 48px; }
  .studio-header--home:not(.is-scrolled) .studio-header__inner { align-items: center; padding-block: 14px; }
  .studio-header.is-enhanced .menu-toggle { display: block; }
  .studio-header.is-enhanced .studio-navigation,
  .studio-header.is-enhanced.studio-header--home:not(.is-scrolled) .studio-navigation {
    position: absolute; top: 100%; right: 0; width: 100%; height: calc(100vh - var(--studio-panel-top, var(--studio-header-height))); height: calc(100dvh - var(--studio-panel-top, var(--studio-header-height))); overflow-y: auto; overscroll-behavior: contain; padding: 30px var(--studio-gutter) 40px; background: #fff; color: var(--studio-blue); text-align: right; text-shadow: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }
  .studio-header.is-enhanced .menu { flex-direction: column; align-items: flex-end; gap: 24px; }
  .studio-header.is-enhanced.is-menu-open .studio-navigation,
  .studio-header.is-enhanced.studio-header--home:not(.is-scrolled).is-menu-open .studio-navigation { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .studio-header:not(.is-enhanced) .studio-navigation .menu { flex-wrap: wrap; gap: 12px; }
  .hero { min-height: 500px; }
  .hero__controls { bottom: 26px; }
  .scroll-cue { bottom: 26px; }
  .hero__count { font-size: 12px; }
  .project-row { height: auto; grid-template-columns: 1fr; }
  .project-piece { height: auto; aspect-ratio: 4 / 5; }
  .project-row--1 .project-piece { aspect-ratio: 1 / 1; }
  .project-piece__caption { padding: 60px var(--studio-gutter) 25px; }
  .project-piece__caption h2 { font-size: 14px; }
  .project-piece__caption p { font-size: 12px; }
  .contact-section { padding: 64px var(--studio-gutter) 160px; }
  .contact-section__body { max-width: 330px; margin: 100px 0 0 auto; }
  .contact-section__text { font-size: 17px; }
  .studio-footer { padding-top: 24px; }
  .studio-footer__main { flex-direction: column; align-items: stretch; gap: 64px; padding-bottom: 70px; }
  .newsletter { width: 100%; max-width: 440px; }
  .studio-footer__connections { align-items: flex-start; gap: 28px; }
  .studio-footer__social { flex-direction: row; justify-content: flex-start; gap: 20px; }
  .studio-footer__bottom { flex-direction: column; gap: 22px; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready { opacity: 1; transform: none; }
  .visual-media__video { display: none; }
}
