/* STUDIO BARM — dirección visual inspirada en Ruva, con identidad propia. */
@font-face { font-family: 'Clash Display'; src: url('assets/fonts/ClashDisplay-Variable.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }
:root {
  --bg: #080808;
  --panel: #141414;
  --text: #f7f4f4;
  --muted: #b7b2b2;
  --line: #383333;
  --red: #ed1c24;
  --button-red: #d71920;
  --body: Poppins, Arial, sans-serif;
  --gutter: 1.25rem;
  --max-width: 76rem;
  --display: 'Clash Display', Arial, sans-serif;
  --deep-red: #840e19;
  --ease: cubic-bezier(.16,1,.3,1);
  --entry-duration: 900ms; --entry-stagger: 110ms; --entry-distance: 32px;
  --reveal-duration: 720ms; --reveal-distance: 28px;
  --float-duration: 7s; --float-distance: 12px; --pulse-duration: 8s;
  --service-stagger: 200ms; --interaction-duration: 380ms; --menu-duration: 240ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font: 400 1rem/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: var(--red); color: #090909; }
:focus-visible { outline: 2px solid #ff8290; outline-offset: 6px; }
[tabindex="-1"]:focus { outline: none; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--max-width)); margin-inline: auto; }
.section-pad { padding-block: 4.25rem; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 500; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h2 { font-weight: 500; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.08; letter-spacing: -.025em; }
.section-heading { display: grid; gap: 1.75rem; margin-bottom: 2.5rem; }
.section-heading .eyebrow { margin-bottom: 1.2rem; }
.section-heading > p, .section-intro > p { color: var(--muted); max-width: 25rem; }
.hero-copy, .about-copy, .contact-copy, .section-heading > div, .section-intro { min-width: 0; }
.skip-link { position: fixed; z-index: 200; left: 1rem; top: 1rem; transform: translateY(-220%); padding: .7rem 1rem; border-radius: 8px; color: #000; background: #fff; }
.skip-link:focus { transform: none; }

/* Menú flotante. Los detalles nativos siguen funcionando sin JavaScript. */
.site-header { position: sticky; top: 1rem; z-index: 80; margin-top: 1rem; }
.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 1.15rem;
  position: relative; isolation: isolate; background: transparent;
  border: 1px solid #63303480;
  border-radius: 999px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.header-inner::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #151212dc; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; }
.site-header.is-scrolled .header-inner { border-color: #6b343e; box-shadow: 0 12px 30px #0006; background: #171318f5; }
.brand { flex: none; }
.logo-crop { position: relative; display: block; overflow: hidden; aspect-ratio: 2/1; background: #000; flex-shrink: 0; }
.logo-crop img { position: absolute; width: 150%; max-width: none; height: auto; left: -25%; top: -103%; }
.brand .logo-crop { width: 6.1rem; border-radius: 3px; }
.desktop-nav, .nav-cta { display: none; }
.menu-toggle { min-width: 5rem; min-height: 2.8rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; list-style: none; font-size: .875rem; }
.menu-toggle::-webkit-details-marker { display: none; }
.menu-icon { width: 20px; height: 10px; border-top: 1px solid; border-bottom: 1px solid; display: block; }
.mobile-menu[open] .menu-icon { height: 1px; border-bottom: 0; transform: rotate(45deg); }
.mobile-menu[open] .menu-icon::after { content: ''; width: 20px; border-top: 1px solid; display: block; transform: rotate(90deg); margin-top: -1px; }
.menu-panel { position: fixed; inset: 6.3rem var(--gutter) 1rem; padding: 1.5rem; background: #141215; border: 1px solid #6b343e; border-radius: 24px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1.5rem; }
.menu-panel nav a { display: flex; align-items: baseline; gap: 1rem; font: 500 clamp(1.8rem, 7vw, 3rem)/1.3 var(--display); letter-spacing: -.025em; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.menu-panel nav a span { color: var(--red); font-size: .75rem; letter-spacing: 0; }
.menu-bottom { margin-top: auto; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; padding-top: 1rem; font-size: .75rem; color: var(--muted); }
.menu-bottom a { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .875rem; color: #fff; }

/* Hero: marca protagonista y planos independientes alrededor del retrato real. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 3rem 2.5rem; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: .8; }
.hero-composition { display: grid; gap: 3rem; }
.hero-copy > .eyebrow { margin-bottom: 1.25rem; max-width: 29rem; font-size: .6875rem; letter-spacing: .13em; }
.hero h1 { font-size: clamp(2.75rem, 12.6vw, 4.25rem); line-height: 1.015; letter-spacing: -.03em; }
.title-line, .title-word { display: block; }
.hero-intro { margin-top: 1.6rem; max-width: 31rem; color: var(--muted); }
.hero-intro strong { color: #fff; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.button { min-height: 3.25rem; border: 1px solid transparent; border-radius: 999px; padding: .85rem 1.25rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; font-size: .875rem; font-weight: 500; line-height: 1.5; transition: background var(--interaction-duration), border-color var(--interaction-duration); }
.button > span, .nav-cta > span, .text-link > span { font-size: 1.2rem; transition: transform var(--interaction-duration) var(--ease); flex: none; }
.button-red { background: var(--button-red); color: #fff; }
.button-outline { border-color: #665555; background: #10101080; }
.hero-actions .button { flex: 1 1 auto; }
.hero-location { display: flex; align-items: center; gap: .55rem; color: var(--muted); margin-top: 1.2rem; font-size: .8125rem; }
.hero-location > span { font-size: 1.2rem; color: #ff656b; }
.hero-feature { position: relative; isolation: isolate; width: 92%; max-width: 27rem; min-width: 0; margin-inline: auto; }
.portrait-halo { position: absolute; inset: -9% -4% 6%; border-radius: 50%; background: radial-gradient(ellipse, #ed1c2440, #840e1924 45%, transparent 71%); z-index: -3; }
.portrait-ring { position: absolute; width: 102%; aspect-ratio: 1; left: -4%; top: 8%; border: 1px solid #ed1c2470; border-radius: 50%; z-index: -1; }
.portrait-orbit { position: absolute; inset: 13% -3% 10%; border: 1px solid #f7f4f421; border-radius: 50%; transform: rotate(-25deg); z-index: -2; }
.hero-media { aspect-ratio: 690/770; overflow: hidden; border-radius: 46% 46% 24px 24px; background: #190b0e; border: 1px solid #442327; }
.hero-media > img, .hero-media > video { width: 100%; height: 100%; object-fit: cover; }
.hero-media > video { object-fit: contain; }
.portrait-brand { position: absolute; left: -.7rem; bottom: 5.5rem; width: 7.5rem; height: 5.25rem; display: grid; place-items: center; border-radius: 18px; background: #080808; border: 1px solid #663337; box-shadow: 0 12px 32px #0006; }
.portrait-brand .logo-crop { width: 6rem; }
.portrait-cross { position: absolute; top: 12%; right: 0; font: 300 3rem/1 var(--display); color: var(--red); }
.portrait-caption { position: absolute; bottom: 8rem; right: -.5rem; padding: .75rem; border-left: 2px solid var(--red); font-size: .6rem; line-height: 1.65; letter-spacing: .15em; background: #080808d9; }
.hero-feature figcaption { display: flex; justify-content: space-between; gap: .75rem; padding-top: 1rem; color: var(--muted); font-size: .6875rem; }
.hero-feature figcaption > span:last-child { white-space: nowrap; color: #f58a8e; letter-spacing: .08em; }


/* Colaboraciones verificadas en el portfolio; no cifras ni logos inventados. */
.clients { padding-block: 2.5rem 3.5rem; }
.clients-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; }
.clients-heading h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.clients-heading p { font-size: .875rem; color: var(--muted); }
.client-list { list-style: none; display: flex; flex: none; width: max-content; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: .35rem 1rem .35rem 0; }
.client-list li { min-width: 0; flex: none; width: clamp(10rem, 20vw, 12.5rem); min-height: 6rem; padding: .8rem; display: flex; align-items: center; justify-content: center; text-align: center; color: #edeaee; border: 1px solid #38282a; border-radius: 18px; background: #121010; font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.4; transition: border-color .3s, background .3s, transform .3s; }
.client-list img { max-height: 3.5rem; object-fit: contain; }
.clients-viewport { min-width: 0; margin-top: 1.75rem; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.client-track { display: flex; width: max-content; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.75rem; padding: .6rem .9rem; border: 1px solid #65525a; border-radius: 999px; background: #1a141a; font-size: .75rem; color: var(--muted); flex: none; }
.motion-toggle-icon { font-size: .95rem; width: 1rem; color: var(--text); }
.motion-toggle:hover, .motion-toggle:focus-visible { color: #fff; border-color: #ae6a78; }
.hero-motion { margin-top: 1rem; }
.section-intro > .motion-toggle { margin-top: 1.25rem; }

/* Movimiento de carga y reposo. El CSS no deja contenido oculto si falla JS. */
@keyframes barm-rise { from { opacity: 0; transform: translateY(var(--entry-distance)); } to { opacity: 1; transform: none; } }
@keyframes barm-portrait { from { opacity: 0; transform: translateY(32px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes barm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-1 * var(--float-distance))); } }
@keyframes barm-orbit { 0%, 100% { transform: rotate(-25deg) translateY(0); } 50% { transform: rotate(-21deg) translateY(-8px); } }
@keyframes barm-halo { 0%, 100% { transform: scale(.97); opacity: .65; } 50% { transform: scale(1.035); opacity: 1; } }
@keyframes barm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes barm-service { 0%, 42%, 100% { transform: scale(1); } 17% { transform: scale(1.035); } }
@keyframes barm-service-light { 0%, 42%, 100% { opacity: .45; transform: scale(.8); filter: blur(0); } 17% { opacity: 1; transform: scale(1.15); filter: blur(5px); } }
.hero-copy > .eyebrow, .title-word, .hero-intro, .hero-actions, .hero-location { animation: barm-rise var(--entry-duration) var(--ease) backwards; }
.hero-copy > .eyebrow { animation-delay: 0ms; }
.title-line:nth-child(1) .title-word { animation-delay: var(--entry-stagger); }
.title-line:nth-child(2) .title-word { animation-delay: calc(var(--entry-stagger) * 2); }
.title-line:nth-child(3) .title-word { animation-delay: calc(var(--entry-stagger) * 3); }
.hero-intro { animation-delay: calc(var(--entry-stagger) * 4); }
.hero-actions { animation-delay: calc(var(--entry-stagger) * 5); }
.hero-location { animation-delay: calc(var(--entry-stagger) * 6); }
.hero-feature { animation: barm-portrait var(--entry-duration) var(--ease) 450ms backwards; }
.portrait-brand, .portrait-cross, .portrait-ring { animation: barm-float var(--float-duration) ease-in-out infinite; }
.portrait-cross { animation-delay: -2s; }
.portrait-ring { animation-duration: 9s; animation-delay: -4s; }
.portrait-orbit { animation: barm-orbit 8s ease-in-out infinite; }
.portrait-halo { animation: barm-halo var(--pulse-duration) ease-in-out infinite; }
.client-track { animation: barm-marquee var(--marquee-duration, 24s) linear infinite; }
.service-card { animation: barm-service var(--pulse-duration) ease-in-out calc(var(--service-index) * var(--service-stagger)) infinite; }
.service-glow { animation: barm-service-light var(--pulse-duration) ease-in-out calc(var(--service-index) * var(--service-stagger)) infinite; }
:is(.motion-paused, .page-inactive, .is-motion-away) :is(.portrait-brand, .portrait-cross, .portrait-ring, .portrait-orbit, .portrait-halo, .client-track, .service-card, .service-glow),
.carousel-hovered .client-track, .service-card:focus-within, .service-card:focus-within .service-glow { animation-play-state: paused; }
.motion-paused :is(.title-word, .hero-copy > .eyebrow, .hero-intro, .hero-actions, .hero-location, .hero-feature), .hero :is(.hero-intro, .hero-actions, .hero-feature):focus-within { animation: none; }
.page-inactive :is(.title-word, .hero-copy > .eyebrow, .hero-intro, .hero-actions, .hero-location, .hero-feature) { animation-play-state: paused; }


/* El estudio conserva el protagonismo junto a la presentación del fundador. */
.about { display: grid; gap: 2.5rem; }
.about-visual { position: relative; min-width: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4/4.5; background: var(--panel); }
.studio-portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.about-photo-label { position: absolute; inset: auto 0 0; padding: 4rem 1.5rem 1.5rem; background: linear-gradient(transparent, #080808ef); }
.about-photo-label span { display: block; font-size: .6875rem; letter-spacing: .15em; color: #d0c6c6; }
.about-photo-label strong { font: 500 2rem/1.4 var(--display); }

.about-copy > .eyebrow { margin-bottom: 1.25rem; }
.about-copy h2 { font-size: clamp(2rem, 6.3vw, 4rem); }
.about-copy > p:not(.eyebrow) { margin-top: 1.3rem; color: var(--muted); }
.about-copy > .lead { color: #fff !important; font-size: 1.12rem; line-height: 1.6; }
.founder { display: flex; align-items: center; gap: .85rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.founder > div { min-width: 0; }
.founder strong { display: block; font-size: .95rem; font-weight: 500; }
.founder span { display: block; color: var(--muted); font-size: .875rem; }
.founder > a { margin-left: auto; min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; border: 1px solid #65525a; border-radius: 50%; }
.skills-row { border-block: 1px solid var(--line); padding-block: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.skills-row > p { color: var(--muted); font-size: .875rem; }
.skills-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; margin: 0; }
.skills-row li { border: 1px solid #4a3841; background: #1a151b; padding: .5rem .9rem; border-radius: 10px; font-size: .875rem; }

/* Muestras reales del PDF: el enlace abre la selección correspondiente. */
.projects-grid { display: grid; gap: 2.25rem; }
.project-card { min-width: 0; }
.project-image-link { display: block; position: relative; }
.project-visual { aspect-ratio: 1.7/1; overflow: hidden; background: #070809; border: 1px solid #38282a; border-radius: 24px; display: flex; align-items: center; justify-content: center; transition: border-color .4s, box-shadow .4s; }
.project-visual > img, .project-visual > video { width: 100%; height: 100%; object-fit: contain; transition: transform var(--interaction-duration) var(--ease); }
.project-open { position: absolute; right: 1rem; bottom: 1rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: #191419ed; border: 1px solid #ae6a78; color: #fff; font-size: 1.3rem; transition: background .3s, transform .4s var(--ease); }
.project-meta { padding: 1.1rem .25rem 0; display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem; flex-wrap: wrap; }
.project-meta h3 { font-size: 1.55rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.4; }
.project-meta p { color: var(--muted); font-size: .875rem; margin-top: .35rem; }
.project-link { border-bottom: 1px solid #987981; font-size: .875rem; padding-block: .3rem; display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; }
.project-description { color: var(--muted); font-size: .9375rem; max-width: 42rem; margin-top: .85rem; }
.portfolio-note { color: var(--muted); font-size: .875rem; margin-top: 1.8rem; max-width: 48rem; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 2.75rem; border-bottom: 1px solid #83626d; margin-top: 1.15rem; font-size: .875rem; }

/* Servicios: el pulso y la luz se animan en capas independientes del revelado. */
.services { background: radial-gradient(ellipse at 85% 65%, #840e191c, transparent 65%); }
.service-grid { display: grid; gap: 1.25rem; }
.service-shell { min-width: 0; }
.service-card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 1.65rem; border: 1px solid #443033; border-radius: 26px; background: var(--panel); }
.service-glow { position: absolute; top: 10%; right: 4%; width: 8rem; height: 8rem; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #ed1c244f, #840e1912 60%, transparent 75%); pointer-events: none; }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.service-icon { width: 3.5rem; height: 3.5rem; color: #ff666d; }
.service-number { color: var(--muted); font-size: .75rem; }
.service-card h3 { font-size: 1.8rem; max-width: 21rem; margin-bottom: 1rem; }
.service-card > p { color: var(--muted); font-size: 1rem; margin-bottom: 1.2rem; }
.service-card .text-link { margin-top: auto; justify-content: space-between; font-size: .8125rem; }


/* Proceso y llamada final, con el mismo ritmo redondeado. */
.process { color: #171313; background: #f1efef; margin-block: 3rem; }
.process .eyebrow, .process .section-heading > p { color: #5e5252; }
.process .red { color: var(--button-red); }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.process-card { border-top: 1px solid #b8afaf; padding-top: 1.5rem; min-width: 0; }
.step-number { display: block; color: var(--button-red); font-size: .875rem; margin-bottom: 1.5rem; }
.process-card h3 { font-size: 1.7rem; margin-bottom: 1rem; }
.process-card p { color: #5e5252; font-size: .9375rem; }

.contact-banner { width: min(calc(100% - var(--gutter) * 2), var(--max-width)); margin: 3rem auto; padding: 2rem 1.5rem; border-radius: 28px; border: 1px solid #913048; background: radial-gradient(ellipse at 100% 100%, #ad142980, transparent 70%), #1a0e10; }
.contact-banner > .container { width: 100%; }
.contact-banner .eyebrow { color: #e0a8b9; font-size: .75rem; margin-bottom: 1.6rem; }
.contact-banner-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.contact-banner h2 { font-size: clamp(1.9rem, 6.5vw, 4.7rem); }
.contact-banner h2 span { color: #ff717b; }
.banner-arrow { display: none; flex: none; border: 1px solid #b7617b; border-radius: 50%; width: 5rem; height: 5rem; align-items: center; justify-content: center; font-size: 2.5rem; transition: transform .4s var(--ease), background .4s; }

/* Formulario real de preparación de WhatsApp; sin envíos de fondo. */
.contact { display: grid; gap: 2.5rem; }
.contact-copy > .eyebrow { margin-bottom: 1.25rem; }
.contact-copy h2 { font-size: clamp(2rem, 6.2vw, 4rem); }
.contact-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 1.5rem; }
.contact-links { margin-top: 2rem; }
.contact-links > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.contact-links > a > span:first-child { min-width: 0; color: var(--muted); font-size: .75rem; }
.contact-links strong { display: block; font-weight: 400; font-size: clamp(.875rem, 3.4vw, 1.05rem); color: #fff; margin-top: .2rem; overflow-wrap: anywhere; }
.contact-links > a > span:last-child { font-size: 1.25rem; }
.contact-form { min-width: 0; border-radius: 26px; padding: 1.5rem; background: var(--panel); border: 1px solid #443033; }
.contact-form h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -.035em; margin-bottom: 1.75rem; }
.form-field { margin-bottom: 1.35rem; }
.form-field label { display: block; margin-bottom: .6rem; font-size: .875rem; }
.form-field label span { color: var(--muted); font-size: .75rem; }
input, textarea, select { width: 100%; min-width: 0; min-height: 3.15rem; background: transparent; border: 0; border-bottom: 1px solid #776969; border-radius: 0; color: #f5f0f4; padding: .7rem .15rem; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #b0a5af; opacity: 1; }
textarea { display: block; resize: vertical; min-height: 8rem; max-height: 28rem; }
select option { background: #141414; }
select { color-scheme: dark; padding-right: .4rem; }
.contact-form .button { width: 100%; }
.form-note { font-size: .75rem; color: #c1aebd; margin-top: 1rem; }
.form-fallback { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 1.5rem; }
.footer-top { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; }
.footer-wordmark { font-size: clamp(1.3rem, 5vw, 2.25rem); letter-spacing: -.04em; font-weight: 600; line-height: 1.3; }
.footer-wordmark span { color: var(--red); }
.footer-top > p { color: var(--muted); font-size: .875rem; }
.back-top { display: inline-flex; align-items: center; gap: 1rem; min-height: 2.75rem; font-size: .875rem; }
.footer-bottom { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 2rem; font-size: .75rem; color: var(--muted); }

/* Progresión mobile-first: 480 / 768 / 1024 / 1440. */
@media (min-width: 30rem) {
  :root { --gutter: 1.5rem; }
  .hero-actions .button { flex: none; }
  .contact-form { padding: 2rem; }
  .contact-banner { padding: 2.75rem; }
}
@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .section-pad { padding-block: 5.5rem; }
  .hero { padding-block: 4rem; }
  .hero-composition { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 2rem; }
  .hero h1 { font-size: clamp(3.3rem, 6.9vw, 6.5rem); }
  .hero-feature { width: 94%; max-width: 28rem; }
  .hero-intro { font-size: 1rem; }
  .hero-actions { gap: .6rem; }
  .hero-actions .button { padding-inline: 1.1rem; }
  .section-heading { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .section-heading h2 { font-size: clamp(2.9rem, 5.2vw, 4.75rem); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.75rem; }
  .project-featured { grid-column: 1/-1; }
  .project-featured .project-visual { aspect-ratio: 2.3/1; }
  .project-card:last-child { grid-column: 1/-1; }
  .project-card:last-child .project-visual { aspect-ratio: 2.5/1; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
  .service-card { padding: 2rem; }
  .service-card h3 { font-size: 2.15rem; }
  .about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
  .about-copy h2 { font-size: clamp(2.75rem, 5.1vw, 4.6rem); }
  .skills-row { grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .skills-row > p { max-width: 11rem; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .banner-arrow { display: flex; }
  .contact-banner { padding: 3.5rem; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .contact-copy h2 { font-size: clamp(2.75rem, 4.8vw, 4.5rem); }
  .footer-top .back-top { margin-left: auto; }
}
@media (min-width: 64rem) {
  .site-header { top: 1.5rem; margin-top: 1.5rem; }
  .header-inner { min-height: 4.4rem; padding: .5rem 1.35rem; }
  .brand .logo-crop { width: 6.4rem; }
  .mobile-menu { display: none; }
  .desktop-nav { display: flex; gap: 1.45rem; font-size: .8125rem; }
  .desktop-nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; color: #c9bfc0; }
  .desktop-nav a[aria-current='location'] { color: #fff; }
  .desktop-nav a[aria-current='location']::after { content: ''; position: absolute; bottom: 2px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
  .nav-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; background: var(--button-red); min-height: 2.85rem; padding: .6rem 1.3rem; border-radius: 999px; font-size: .8125rem; transition: background var(--interaction-duration); }
  .hero { padding-block: 4.5rem; min-height: min(49rem, calc(100svh - 5.9rem)); display: grid; align-items: center; }
  .hero-composition { gap: 3.25rem; }
  .hero h1 { font-size: clamp(4.5rem, 7.25vw, 6.5rem); }
  .hero-intro { font-size: 1.0625rem; }
  .hero-feature { width: 96%; }
  .motion-enabled .hero-media > img { transform: translate3d(0, var(--portrait-offset, 0px), 0) scale(1.045); }
  .portrait-brand { width: 8rem; height: 5.8rem; }
  .portrait-brand .logo-crop { width: 6.7rem; }
  .portrait-cross { right: -1rem; font-size: 4rem; }
  .portrait-caption { bottom: 9rem; right: -1.5rem; }
  .section-heading { margin-bottom: 3rem; }
  .project-meta h3 { font-size: 1.8rem; }
  .service-card { padding: 2.5rem; }
  .service-card h3 { font-size: 2.5rem; }
  .service-top { margin-bottom: 2.5rem; }
  .about { gap: 4rem; }
  .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-number { margin-bottom: 3rem; }
  .contact { gap: 4rem; }
  .contact-form { padding: 2.5rem; }
}
@media (min-width: 90rem) {
  .section-pad { padding-block: 6.5rem; }
  .hero { padding-block: 5rem; }
  .hero-composition { gap: 4rem; }
  .hero h1 { font-size: 6.5rem; }
  .clients { padding-bottom: 4rem; }
  .about { gap: 5rem; }
}
/* Hover y foco comparten respuesta; la superficie del botón no se desplaza. */
.button-red:is(:hover, :focus-visible), .nav-cta:is(:hover, :focus-visible) { background: #b91018; }
.button-outline:is(:hover, :focus-visible) { border-color: var(--red); background: #381215; }
.button:is(:hover, :focus-visible) > span, .nav-cta:is(:hover, :focus-visible) > span, .text-link:is(:hover, :focus-visible) > span { transform: translate(3px, -3px); }
.desktop-nav a:is(:hover, :focus-visible), .back-top:is(:hover, :focus-visible) { color: #ff898e; }
.text-link:is(:hover, :focus-visible), .project-link:is(:hover, :focus-visible) { border-color: #ff656b; }
.project-image-link:is(:hover, :focus-visible) .project-visual > img { transform: scale(1.04); }
.project-image-link:is(:hover, :focus-visible) .project-visual { border-color: #a34e55; }
.project-image-link:is(:hover, :focus-visible) .project-open { background: var(--button-red); transform: translate(2px, -2px); opacity: 1; }
.contact-banner-link:is(:hover, :focus-visible) .banner-arrow { transform: translate(3px, -3px); background: var(--deep-red); }
.contact-links > a:is(:hover, :focus-visible) strong { color: #ff898e; }
@media (hover: hover) and (pointer: fine) { .project-open { opacity: .55; } }
@media (max-width: 47.99rem) { :root { --float-distance: 8px; --entry-distance: 24px; --reveal-distance: 20px; } }


@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) { scroll-behavior: auto; }
  html:not(.motion-force) *, html:not(.motion-force) *::before, html:not(.motion-force) *::after { animation: none !important; transition: none !important; }
  html:not(.motion-force) .client-track { display: block; width: auto; }
  html:not(.motion-force) .client-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; padding: 0; }
  html:not(.motion-force) .client-list li { width: auto; min-height: 5.7rem; }
  html:not(.motion-force) .client-list-copy { display: none; }
  html:not(.motion-force) .clients-viewport { mask-image: none; overflow: visible; }
}
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { transition: none !important; }
@media (forced-colors: active) {
  .button, .menu-toggle, .project-open { border: 1px solid ButtonText; }
  .red, .muted { color: CanvasText; }
}
