:root {
  --bg: #f5f3ef;
  --ink: #121212;
  --muted: #68645e;
  --line: #d9d4ca;
  --dark: #101010;
  --panel: #191919;
  --white: #fff;
  --accent: #c72f27;
  --accent-soft: #e14a42;
  --steel: #8f9aa3;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; overflow-x: clip; }
body { width: 100%; min-width: 0; overflow-x: clip; font-family: "Inter", Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin: auto; }

.header { position: fixed; top: 0; width: 100%; z-index: 60; color: #fff; background: rgba(12,12,12,.72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.nav { height: 112px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 900; letter-spacing: 0; }
.logo-img { width: 98px; height: 98px; object-fit: contain; border-radius: 50%; background: #fff; border: 2px solid rgba(255,255,255,.72); box-shadow: 0 8px 24px rgba(0,0,0,.24); padding: 5px; }
.logo-wordmark { display: block; width: 220px; height: auto; object-fit: contain; }
.footer .logo-wordmark { width: 180px; }
.logo-img { flex-shrink: 0; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 14px; font-weight: 700; }
.nav-links a:not(.nav-cta) { opacity: .78; transition: .2s ease; }
.nav-links a:not(.nav-cta):hover { opacity: 1; }
.nav-cta { background: var(--accent); border: 1px solid var(--accent); padding: 10px 18px; border-radius: 999px; color: #fff; box-shadow: 0 10px 24px rgba(199,47,39,.28); }
.nav-cta:hover { background: #fff; border-color: #fff; color: #111; }
.menu-toggle { display: none; border: 0; background: none; color: #fff; font-size: 28px; cursor: pointer; }

.hero {
  min-height: 760px;
  height: 100vh;
  max-height: 940px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  background: #0d0d0d;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.2) 100%),
    url("../images/wallpaper.jpg") center right / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 68% 54%, rgba(199,47,39,.28), transparent 22%),
    repeating-linear-gradient(115deg, transparent 0 58px, rgba(255,255,255,.04) 59px 60px);
}
.hero-content { position: relative; z-index: 2; padding-top: 76px; max-width: 820px; }
.eyebrow, .section-tag { font-size: 12px; font-weight: 900; letter-spacing: 2px; color: var(--accent); margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: .97; letter-spacing: 0; max-width: 850px; }
.hero-text { max-width: 620px; margin: 28px 0 36px; font-size: 18px; color: #dedede; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 4px; padding: 16px 22px; font-size: 14px; font-weight: 900; transition: .2s ease; border: 0; cursor: pointer; min-height: 52px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: #fff; color: #111; }
.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(12px);
}
.hero-strip span { padding: 18px 30px; text-align: center; font-size: 12px; font-weight: 800; color: #d8d8d8; border-right: 1px solid rgba(255,255,255,.12); }
.hero-strip span:last-child { border-right: 0; }

.section { padding: 108px 0; }
.reveal-section { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }
.intro-grid, .section-heading, .about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.section h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: 0; }
.intro-copy { max-width: 550px; font-size: 17px; color: var(--muted); }
.intro-copy p + p { margin-top: 18px; }
.intro-contact { margin-top: 28px; padding: 20px; border-left: 5px solid var(--accent); background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; box-shadow: 0 14px 30px rgba(0,0,0,.06); }
.intro-contact span { color: var(--ink); font-size: 15px; font-weight: 800; }
.intro-contact .btn { min-height: 48px; white-space: nowrap; }
.dark-section { background: var(--dark); color: #fff; }
.dark-section .section-tag { color: var(--accent-soft); }
.section-heading { align-items: end; margin-bottom: 58px; }
.section-heading > p { color: #9b9b9b; max-width: 360px; }
.services-note { max-width: 420px; padding: 24px; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); border-left: 5px solid var(--accent); box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.services-note span { display: block; margin-bottom: 10px; color: #fff; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.services-note p { color: #d5d5d5; font-size: 16px; line-height: 1.55; }
.services-note a { display: inline-flex; margin-top: 18px; color: var(--accent-soft); font-size: 13px; font-weight: 900; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #333; }
.service-card { position: relative; min-height: 520px; padding: 18px 25px 28px; border-right: 1px solid #333; transition: .25s ease; overflow: hidden; }
.service-card:last-child { border-right: 0; }
.service-card:hover { background: var(--panel); transform: translateY(-4px); }
.service-photo { width: calc(100% + 50px); height: 180px; margin: -18px -25px 28px; display: block; object-fit: cover; opacity: .82; filter: saturate(.95) contrast(1.05); transition: transform .45s ease, opacity .25s ease; }
.service-card:hover .service-photo { transform: scale(1.06); opacity: 1; }
.service-number { color: #737373; font-size: 12px; font-weight: 800; }
.service-icon { font-size: 40px; color: var(--accent); margin: 28px 0 24px; }
.service-card h3 { font-size: 24px; line-height: 1.12; }
.service-card p { color: #a1a1a1; font-size: 14px; margin: 18px 0 25px; }
.service-card a { color: var(--accent-soft); font-size: 13px; font-weight: 900; }
.reveal-section.is-visible .service-card { animation: card-rise .65s ease both; }
.reveal-section.is-visible .service-card:nth-child(2) { animation-delay: .08s; }
.reveal-section.is-visible .service-card:nth-child(3) { animation-delay: .16s; }
.reveal-section.is-visible .service-card:nth-child(4) { animation-delay: .24s; }

@keyframes card-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.filters { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.filter { background: none; border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--ink); }
.filter.active, .filter:hover { background: #111; color: #fff; border-color: #111; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { min-width: 0; }
.project-tall { grid-row: span 2; }
.project-wide { grid-column: span 2; }
.project-image { aspect-ratio: 1.25; overflow: hidden; position: relative; background: #dedbd5; }
.project-image::before, .project-image::after { content: ""; position: absolute; inset: 0; }
.project-tall .project-image { height: 100%; min-height: 560px; }
.project-wide .project-image { aspect-ratio: 2.55; }
.project-wood { background: linear-gradient(135deg, #c59a62, #4b3524); }
.project-wood::before { background: repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,.18) 25px 26px); }
.project-acrylic { background: linear-gradient(135deg, #dfe8ec, #2d596c); }
.project-acrylic::before { border: 28px solid rgba(255,255,255,.36); inset: 32px; }
.project-engrave { background: linear-gradient(135deg, #222, #6b3531); }
.project-engrave::before { background: radial-gradient(circle at 48% 48%, rgba(199,47,39,.72), transparent 12%), repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.14) 19px 20px); }
.project-display { background: linear-gradient(135deg, #2b2b2b, #9c7550); }
.project-display::before { inset: 46px; border: 18px solid rgba(255,255,255,.22); transform: skewX(-9deg); }
.project-panel { background: linear-gradient(120deg, #151515, #3e474e 55%, #c72f27); }
.project-panel::before { background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.18) 47px 49px); }
.project-info { display: flex; justify-content: space-between; gap: 15px; padding: 15px 2px 5px; }
.project-info h3 { font-size: 15px; }
.project-info span { font-size: 11px; color: var(--muted); text-align: right; font-weight: 700; }

.materials { background: #e9e5dd; }
.material-accordion { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 52px; }
.material-item { border: 1px solid #c9c2b7; background: rgba(255,255,255,.42); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.material-item[open] { border-color: var(--accent); background: rgba(255,255,255,.82); box-shadow: 0 16px 34px rgba(0,0,0,.08); transform: translateY(-3px); }
.material-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; min-height: 92px; padding: 22px; }
.material-item summary::-webkit-details-marker { display: none; }
.material-item summary::after { content: "+"; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font-size: 20px; font-weight: 500; transition: .2s ease; }
.material-item[open] summary::after { content: "-"; background: var(--accent); }
.material-item[open] summary strong { color: var(--accent); }
.material-item summary span { color: var(--accent); font-size: 12px; font-weight: 900; }
.material-item summary strong { font-size: 24px; }
.material-item summary small { color: var(--muted); font-size: 13px; font-weight: 800; text-align: right; }
.material-panel { border-top: 1px solid #c9c2b7; padding: 0 22px 24px 80px; color: var(--muted); font-size: 14px; animation: material-open .24s ease both; }
.material-panel p + p { margin-top: 10px; }
.material-note { color: var(--muted); font-size: 13px; margin-top: 25px; }

@keyframes material-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.process-grid { --process-x: 50%; --process-y: 0%; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 55px; border-top: 1px solid var(--line); overflow: hidden; }
.process-grid::before { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: process-line 4.8s ease-in-out infinite; }
.process-grid::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--process-x) var(--process-y), rgba(199,47,39,.22), transparent 24%); transition: opacity .2s ease; }
.process-grid:hover::before { animation-play-state: paused; transform: translateX(calc(var(--process-x) - 50%)); opacity: 1; }
.process-grid:hover::after { opacity: 1; }
.process-grid > div { position: relative; z-index: 1; padding: 25px 20px 22px 0; border-right: 1px solid var(--line); margin-right: 20px; animation: process-step 5s ease-in-out infinite; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, padding-left .18s ease; }
.process-grid > div:nth-child(2) { animation-delay: .25s; }
.process-grid > div:nth-child(3) { animation-delay: .5s; }
.process-grid > div:nth-child(4) { animation-delay: .75s; }
.process-grid > div:nth-child(5) { animation-delay: 1s; }
.process-grid > div:last-child { border: 0; }
.process-grid > div:hover, .process-grid > div.process-active { background: rgba(199,47,39,.1); transform: translateY(-8px); box-shadow: 0 18px 30px rgba(0,0,0,.08); padding-left: 14px; }
.process-grid:hover > div { animation-play-state: paused; }
.process-grid span { color: var(--accent); font-weight: 900; font-size: 12px; }
.process-grid h3 { margin: 42px 0 12px; font-size: 18px; transition: color .18s ease; }
.process-grid > div:hover h3, .process-grid > div.process-active h3 { color: var(--accent); }
.process-grid p { color: var(--muted); font-size: 14px; }
.process-cta { margin-top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; background: #111; color: #fff; border-left: 5px solid var(--accent); }
.process-cta p { font-size: 18px; font-weight: 800; }
.process-cta .btn { animation: cta-pulse 2.6s ease-in-out infinite; }

@keyframes process-line {
  0% { transform: translateX(-100%); opacity: 0; }
  18% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes process-step {
  0%, 100% { background: transparent; transform: translateY(0); }
  12% { background: rgba(199,47,39,.08); transform: translateY(-4px); }
  24% { background: transparent; transform: translateY(0); }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,47,39,.36); }
  50% { box-shadow: 0 0 0 10px rgba(199,47,39,0); }
}

.about-grid { align-items: start; }
.about { position: relative; overflow: hidden; }
.about::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,16,16,.9), rgba(16,16,16,.72)); z-index: 1; }
.about-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; z-index: 0; filter: grayscale(.2) contrast(1.08); }
.about .container { position: relative; z-index: 2; }
.about-lead { font-size: 25px; line-height: 1.28; margin-bottom: 25px; }
.about-grid > div:last-child > p:not(.about-lead) { color: #999; font-size: 15px; }
.stats { display: flex; gap: 35px; margin-top: 45px; border-top: 1px solid #333; padding-top: 25px; }
.stats strong { display: block; font-size: 25px; color: #fff; }
.stats span { color: #888; font-size: 12px; font-weight: 700; }

.contact { background: #fff; }
.contact-grid { align-items: start; }
.contact-copy { max-width: 460px; color: var(--muted); margin-top: 25px; }
.contact-details { display: flex; flex-direction: column; gap: 8px; margin-top: 35px; font-size: 14px; font-weight: 800; }
.contact-details a:hover { color: var(--accent); }
.quote-form { border: 1px solid var(--line); padding: 35px; background: #fff; }
.quote-form label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 18px; letter-spacing: .2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input, select, textarea { width: 100%; margin-top: 8px; padding: 14px 13px; border: 1px solid var(--line); background: #faf9f7; font-size: 14px; outline: none; border-radius: 3px; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
textarea { resize: vertical; }
.form-submit { width: 100%; }
.form-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 12px; }

.footer { background: #0c0c0c; color: #b7b7b7; padding: 34px 0; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: auto minmax(260px, 1fr) minmax(280px, 420px) auto; align-items: center; gap: 28px; }
.footer .logo { color: #fff; }
.footer .logo-img { width: 62px; height: 62px; box-shadow: none; border-color: rgba(255,255,255,.35); }
.footer-contact { display: grid; gap: 6px; line-height: 1.45; }
.footer-contact strong { color: #fff; }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--accent-soft); }
.footer-map {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  min-height: 170px;
  background: #171717;
}
.footer-map iframe {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
  filter: grayscale(.25) contrast(1.08);
}
.footer-copy { text-align: right; max-width: 180px; }
.social-floating {
  position: fixed;
  right: 32px;
  bottom: 108px;
  display: grid;
  gap: 10px;
  z-index: 31;
}
.social-floating a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16,16,16,.92);
  color: #fff;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  animation: social-breathe 3.6s ease-in-out infinite;
}
.social-floating a:nth-child(2) { animation-delay: .18s; }
.social-floating a:nth-child(3) { animation-delay: .36s; }
.social-floating a:nth-child(1) { background: #1877f2; }
.social-floating a:nth-child(2) { background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af); }
.social-floating a:nth-child(3) { background: #111; }
.social-floating a:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--accent);
  border-color: #fff;
}
.social-floating svg { width: 22px; height: 22px; fill: currentColor; }
.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  z-index: 30;
  overflow: visible;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.28));
  animation: whatsapp-float 3s ease-in-out infinite;
}
.whatsapp::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: rgba(37, 211, 102, .25);
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}
.whatsapp img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform .2s ease;
}
.whatsapp:hover img { transform: scale(1.08) rotate(-5deg); }

@keyframes whatsapp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes whatsapp-pulse {
  0% { transform: scale(.82); opacity: .75; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes social-breathe {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.22); }
  50% { box-shadow: 0 8px 26px rgba(199,47,39,.34); }
}

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 75px; left: 24px; right: 24px; padding: 20px; background: #111; flex-direction: column; align-items: stretch; border: 1px solid rgba(255,255,255,.12); }
  .nav-links.open { display: flex; }
  .nav-cta { text-align: center; }
  .menu-toggle { display: block; }
  .hero { min-height: 720px; }
  .hero-media { background-position: center; }
  .intro-grid, .section-heading, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .intro-contact { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: 0; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-wide { grid-column: span 2; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid > div { min-height: 180px; }
  .material-accordion { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(var(--container), calc(100% - 30px)); }
  .section { padding: 76px 0; }
  .hero { min-height: 700px; }
  .hero-content { padding-top: 48px; }
  .hero h1 { font-size: clamp(42px, 14vw, 58px); }
  .hero-text { font-size: 16px; }
  .hero-buttons .btn { width: 100%; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip span { padding: 10px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .service-grid, .project-grid, .material-accordion, .process-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
  .process-cta { flex-direction: column; align-items: stretch; }
  .process-cta p { font-size: 16px; }
  .service-card, .service-card:nth-child(2) { border-right: 0; border-bottom: 1px solid #333; min-height: 320px; }
  .project-wide { grid-column: auto; }
  .project-tall .project-image { min-height: 320px; }
  .project-wide .project-image { aspect-ratio: 1.25; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; align-items: flex-start; }
  .footer-map { width: 100%; min-height: 220px; }
  .footer-map iframe { height: 220px; }
  .footer-copy { text-align: left; max-width: none; }
  .social-floating { right: 18px; bottom: 104px; gap: 8px; }
  .social-floating a { width: 40px; height: 40px; }
  .social-floating svg { width: 19px; height: 19px; }
  .logo-img { width: 62px; height: 62px; }
  .logo-wordmark, .footer .logo-wordmark { width: clamp(130px, 40vw, 180px); }

  .stats { gap: 20px; flex-wrap: wrap; }
  .section h2 { font-size: clamp(34px, 11vw, 44px); }
  .material-item summary { grid-template-columns: 38px 1fr; }
  .material-item summary small { grid-column: 2; text-align: left; }
  .material-item summary::after { grid-column: 1 / -1; width: 100%; border-radius: 4px; margin-top: 6px; }
  .material-panel { padding: 0 18px 22px; }
}

/* Galería de imágenes dentro de un mismo proyecto. */
.gallery-stage { background: #e7e4df; }
.gallery-stage::before, .gallery-stage::after { content: none; }
.gallery-main { display: block; width: 100%; height: auto; aspect-ratio: 1.25; object-fit: contain; }
.gallery-thumbnails { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbnail { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 2px solid var(--line); background: transparent; color: var(--ink); border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; }
.gallery-thumbnail img { display: block; width: 48px; height: 36px; object-fit: cover; border-radius: 2px; }
.gallery-thumbnail[aria-pressed="true"] { border-color: var(--accent); background: #fff; }
.gallery-thumbnail:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.project-video { display: block; width: 100%; aspect-ratio: 1.25; object-fit: contain; background: #101010; }
.video-selectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.video-selectors button { padding: 8px 10px; }
.process-videos { background: #ece9e3; }
.process-videos-content { max-width: 860px; margin: 0 auto; }
.process-videos .project-video { aspect-ratio: 16 / 9; max-height: 65vh; }
.process-videos .video-selectors { justify-content: center; }
/* Carrusel de procesos: centro activo y vistas laterales. */
.video-carousel { overflow: hidden; padding: 20px 0; }
.video-carousel-stage { position: relative; height: min(72vh, 680px); min-height: 360px; }
.video-slide { position: absolute; top: 50%; left: 50%; width: auto; height: 94%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #111; box-shadow: 0 16px 35px #0003; transition: transform .4s ease, opacity .4s ease, filter .4s ease; }
.video-slide video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-slide[data-position="0"] { transform: translate(-50%, -50%); z-index: 4; opacity: 1; }
.video-slide[data-position="-1"] { transform: translate(-108%, -50%) scale(.73); z-index: 2; opacity: .5; filter: saturate(.4); }
.video-slide[data-position="1"] { transform: translate(8%, -50%) scale(.73); z-index: 2; opacity: .5; filter: saturate(.4); }
.video-slide[data-position="2"] { transform: translate(45%, -50%) scale(.55); z-index: 1; opacity: .25; filter: saturate(.2); }
.video-slide-select { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff; cursor: pointer; }
.video-slide-select[hidden] { display: none; }
.video-slide-select span { position: absolute; bottom: 16px; left: 12px; font-weight: 700; }
.video-carousel-navigation { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 22px; }
.video-carousel-navigation button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; cursor: pointer; }
.video-carousel-navigation button:hover { background: var(--ink); color: #fff; }
.video-carousel button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video-carousel-status { font-size: 14px; font-weight: 700; }
@media (max-width: 600px) { .video-carousel-stage { height: min(110vw, 560px); min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .video-slide { transition: none; } }
/* Mantener fondos a todo el ancho y contener elementos anchos. */
main, main > section, .footer { width: 100%; min-width: 0; }
.section .container > *, .footer-grid > * { min-width: 0; }
.gallery-thumbnails { flex-wrap: wrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-links { gap: 16px; font-size: 12px; }
  .nav .logo-wordmark { width: 180px; }
}