/* David Rodríguez — Portafolio · Paleta: #2544FF #333132 #E7E8EB #FFFFFF #0C0D12 #DFFF3F */
:root {
  --blue: #2544FF;
  --blue-2: #1A33D6;
  --graphite: #333132;
  --silver: #E7E8EB;
  --white: #FFFFFF;
  --black: #0C0D12;
  --lime: #DFFF3F;
  --soft: #F4F5F7;
  --muted: #5F616A;
  --line: #E7E8EB;
  --radius: 22px;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.1,1);
  --shadow: 0 1px 2px rgba(12,13,18,.04), 0 12px 32px rgba(12,13,18,.07);
  --shadow-lg: 0 30px 80px rgba(12,13,18,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--black); font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .wall-col, .marquee-track { animation: none !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s; white-space: nowrap; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 30px rgba(37,68,255,.35); }
.btn-blue:hover { background: var(--black); box-shadow: 0 10px 30px rgba(12,13,18,.25); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--blue); }
.btn-ghost { background: var(--white); color: var(--black); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--black); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--white); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue); }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--graphite); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 80px; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; left: -300px; top: -350px; background: radial-gradient(circle, rgba(37,68,255,.13), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero { min-height: 0; } }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--graphite); background: var(--white); border: 1px solid var(--line); padding: 8px 16px 8px 12px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 30px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(44px, 5.4vw, 84px); margin-bottom: 26px; }
.hero h1 .serif { color: var(--blue); font-size: 1.08em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.proof { display: flex; align-items: center; gap: 16px; }
.proof p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.proof strong { color: var(--black); font-size: 15px; }
.proof-avatars { display: flex; }
.proof-avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); margin-left: -12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); background: var(--white); }
.proof-avatars img:first-child { margin-left: 0; }

/* Hero wall */
.hero-wall { position: relative; height: 680px; border-radius: 32px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
@media (max-width: 1000px) { .hero-wall { height: 480px; } }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 100%; }
.wall-col { display: flex; flex-direction: column; gap: 14px; animation: wallUp 38s linear infinite; }
.wall-col:nth-child(2) { animation-name: wallDown; animation-duration: 44s; }
.wall-col:nth-child(3) { animation-duration: 50s; }
.wall-col img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; box-shadow: 0 10px 30px rgba(12,13,18,.12); }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wallDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); padding: 12px 18px 12px 12px; border-radius: 18px; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.float-chip img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.float-chip strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.float-chip span { font-size: 12px; color: var(--muted); }
.chip-a { left: -10px; top: 22%; }
.chip-b { right: -6px; bottom: 18%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 600px) { .chip-a { left: 8px; } .chip-b { right: 8px; } }

/* ---------- Logos marquee ---------- */
.logos { padding: 40px 0 70px; }
.logos-title { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-pill { display: flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.logo-pill img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.logo-pill span { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; }

/* ---------- Stats ---------- */
.stats { background: var(--black); color: var(--white); padding: 90px 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(37,68,255,.5), transparent 60%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
.stat strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(44px, 5.5vw, 78px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--lime); margin-bottom: 12px; }
.stat span { color: rgba(255,255,255,.7); font-size: 15px; max-width: 220px; display: block; }

/* ---------- Sections ---------- */
section.block { padding: 120px 0; }
@media (max-width: 600px) { section.block { padding: 80px 0; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.kicker.light { color: var(--lime); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(38px, 5vw, 68px); }
.section-head h2 .serif, .about h2 .serif, .contact h2 .serif { color: var(--blue); }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head.split p { color: var(--muted); max-width: 360px; font-size: 17px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.service { grid-column: span 4; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: var(--white); isolation: isolate; }
.service:nth-child(1), .service:nth-child(2) { grid-column: span 6; min-height: 440px; }
@media (max-width: 900px) { .service, .service:nth-child(1), .service:nth-child(2) { grid-column: span 12; min-height: 340px; } }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,13,18,0) 30%, rgba(12,13,18,.88)); }
.service:hover img { transform: scale(1.06); }
.service .num { position: absolute; top: 24px; left: 28px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); padding: 6px 12px; border-radius: 999px; }
.service h3 { font-size: 28px; margin-bottom: 10px; color: var(--white); }
.service p { color: rgba(255,255,255,.82); font-size: 15px; max-width: 420px; }

/* ---------- Featured ---------- */
.featured-wrap { padding-top: 0 !important; }
.featured { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; background: var(--soft); border-radius: 32px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.featured-media { position: relative; background: var(--blue); min-height: 560px; padding: 44px; display: flex; gap: 16px; align-items: center; justify-content: center; overflow: hidden; }
.featured-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(223,255,63,.35), transparent 50%); }
.featured-media img { position: relative; width: 46%; aspect-ratio: 9/16; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-4deg); }
.featured-media .featured-media-2 { width: 40%; transform: rotate(5deg) translateY(30px); }
@media (max-width: 900px) { .featured-media { min-height: 420px; } }
.featured-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
@media (max-width: 600px) { .featured-copy { padding: 32px 24px; } }
.featured-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.featured-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.featured-copy h3 { font-size: clamp(30px, 3.4vw, 46px); }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 94%, transparent 94%); }
.featured-copy p { color: var(--muted); font-size: 17px; }
.featured-stats { display: flex; gap: 40px; padding: 8px 0; }
.featured-stats strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 44px; letter-spacing: -0.03em; line-height: 1; color: var(--blue); }
.featured-stats span { font-size: 14px; color: var(--muted); }
.link { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.featured:hover .link .arrow { transform: translateX(4px); }
.link .arrow { transition: transform .25s var(--ease); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { border: 1px solid var(--line); background: var(--white); color: var(--graphite); padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--black); }
.chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Case cards ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cases { grid-template-columns: 1fr; } }
.case-card { display: flex; flex-direction: column; gap: 16px; }
.case-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.case-media img.cover { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-card:hover .case-media img.cover { transform: scale(1.06); }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,18,.0) 55%, rgba(12,13,18,.55)); }
.case-badge { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: var(--lime); color: var(--black); border-radius: 14px; padding: 10px 14px; line-height: 1.1; max-width: 75%; }
.case-badge strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 24px; letter-spacing: -0.02em; }
.case-badge span { font-size: 12px; font-weight: 500; }
.case-logo { position: absolute; top: 16px; left: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 6px 16px rgba(0,0,0,.2); background: var(--white); }
.case-go { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 18px; transform: scale(.8); opacity: 0; transition: all .3s var(--ease); }
.case-card:hover .case-go { transform: none; opacity: 1; }
.case-info { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.case-info h3 { font-size: 24px; margin-bottom: 4px; }
.case-type { color: var(--muted); font-size: 15px; }
.case-sector { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); white-space: nowrap; padding-top: 6px; }

/* ---------- Process ---------- */
.process { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: var(--white); font-family: "Space Grotesk", sans-serif; font-weight: 600; margin-bottom: 24px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }
.about-visual { position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; }
.about-grid img:nth-child(2) { transform: translateY(40px); }
.about-grid img:nth-child(4) { transform: translateY(40px); }
.about-badge { position: absolute; right: -20px; bottom: 32px; display: flex; align-items: center; gap: 14px; background: var(--white); padding: 14px 22px 14px 14px; border-radius: 20px; box-shadow: var(--shadow-lg); }
@media (max-width: 600px) { .about-badge { right: 12px; } }
.about-badge img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.about-badge strong { display: block; font-family: "Space Grotesk", sans-serif; }
.about-badge span { font-size: 13px; color: var(--muted); }
.about-copy h2 { font-size: clamp(34px, 4.2vw, 56px); margin-bottom: 26px; }
.about-copy p { color: var(--muted); font-size: 18px; margin-bottom: 18px; }
.about-copy strong { color: var(--black); }
.checks { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); font-size: 13px; font-weight: 700; flex: none; }

/* ---------- Contact ---------- */
.contact { position: relative; border-radius: 36px; overflow: hidden; background: var(--blue); color: var(--white); min-height: 520px; display: flex; align-items: center; }
.contact-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; opacity: .22; transform: rotate(-8deg) scale(1.3); }
.contact-wall img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; }
.contact::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(37,68,255,.75), rgba(37,68,255,.95) 70%); }
.contact-inner { position: relative; z-index: 2; padding: 80px 32px; text-align: center; width: 100%; }
.contact h2 { font-size: clamp(42px, 6.5vw, 92px); margin-bottom: 18px; color: var(--white); }
.contact h2 .serif { color: var(--lime); }
.contact p { color: rgba(255,255,255,.85); font-size: 19px; max-width: 560px; margin: 0 auto 36px; }
.contact-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer { padding: 48px 0; border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { color: var(--black); font-size: 16px; }
.foot .brand-avatar { width: 30px; height: 30px; }

/* ================= Case page ================= */
.case-hero { padding: 130px 0 60px; position: relative; }
.case-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .case-hero-grid { grid-template-columns: 1fr; } }
.back { color: var(--muted); font-size: 14px; font-weight: 500; display: flex; width: fit-content; gap: 8px; margin-bottom: 30px; }
.back:hover { color: var(--blue); }
.case-title-row { display: flex; align-items: center; gap: 18px; margin: 14px 0 16px; }
.case-title-row img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.case-hero h1 { font-size: clamp(44px, 6.5vw, 92px); }
.case-hero .case-type { font-size: 20px; }
.case-meta { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-meta small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; font-weight: 600; }
.case-meta span { font-weight: 500; }
.case-meta a { color: var(--blue); font-weight: 600; }
.case-hero-media { position: relative; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.results-band { background: var(--black); color: var(--white); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 64px; }
.result strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; color: var(--lime); margin-bottom: 10px; }
.result span { color: rgba(255,255,255,.72); font-size: 15px; }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 80px; }
.story-item { background: var(--soft); border-radius: var(--radius); padding: 36px; }
.story-item h3 { font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.story-item p { font-size: 18px; color: var(--graphite); line-height: 1.6; }
.gallery-title { font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }
.gallery.verticals { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 18px; }
.video { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.video .frame { position: relative; aspect-ratio: 16/9; background: var(--black); cursor: pointer; }
.video.vertical .frame { aspect-ratio: 9/16; background: var(--soft); }
.video .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video .frame:hover img { transform: scale(1.04); }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.video .frame:hover .play span { transform: scale(1.1); }
.video .caption { padding: 16px 18px; font-size: 14px; font-weight: 500; color: var(--graphite); }
.photos { columns: 3 280px; column-gap: 18px; }
.photos a { display: block; margin-bottom: 18px; border-radius: 20px; overflow: hidden; break-inside: avoid; }
.photos img { width: 100%; transition: transform .8s var(--ease); }
.photos a:hover img { transform: scale(1.04); }
.next-cases { margin-top: 110px; }

/* ================= Menú y versión móvil ================= */
.menu { display: none; position: relative; }
@media (max-width: 900px) {
  .menu { display: block; margin-left: auto; margin-right: 10px; }
  .menu summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { width: 20px; height: 2px; background: var(--black); }
  .menu > div { position: absolute; right: -60px; top: 54px; width: 220px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
  .menu > div a { display: block; padding: 13px 16px; font-weight: 500; }
}
@media (max-width: 600px) {
  .hero { padding: 92px 0 40px; }
  .hero-grid { gap: 22px; }
  .hero-copy { display: contents; }
  .hero-copy > * { margin: 0 !important; min-width: 0; }
  .hero .status { display: none; }
  .hero h1 { font-size: 40px; order: 1; }
  .hero .lead { font-size: 16px; line-height: 1.5; order: 2; }
  .hero-ctas { order: 3; flex-wrap: nowrap; gap: 8px; }
  .hero-ctas .btn { flex: 1; justify-content: center; padding: 14px 8px; font-size: 14px; white-space: nowrap; }
  .hero-wall { order: 4; height: 400px; min-width: 0; }
  .proof { order: 5; }
  .proof-avatars { flex: none; }
  .proof-avatars img { width: 36px; height: 36px; }
  .proof-avatars img:nth-child(n+4) { display: none; }
  section.block { padding: 56px 0; }
  .services { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; scrollbar-width: none; }
  .service, .service:nth-child(1), .service:nth-child(2) { flex: 0 0 80%; min-height: 360px; scroll-snap-align: start; opacity: 1; transform: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px; scrollbar-width: none; }
  .filters .chip { flex: none; }
  .cases { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .case-card { gap: 10px; min-width: 0; }
  .case-info { display: block; }
  .case-info h3 { font-size: 17px; }
  .case-info .case-type { font-size: 13px; }
  .case-sector { display: none; }
  .case-badge { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; max-width: none; }
  .case-badge strong { font-size: 20px; }
  .case-badge span { font-size: 11px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .case-logo { width: 36px !important; height: 36px !important; }
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 18px 16px; }
  .step-n { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 14px; }
  .featured-media { min-height: 300px; }
  .section-head { margin-bottom: 28px; }
}
section[id] { scroll-margin-top: 24px; }
@media (max-width: 600px) {
  section[id] { scroll-margin-top: 50px; }
  .nav .brand { font-size: 14px; gap: 8px; white-space: nowrap; }
  .nav .brand-avatar { width: 38px; height: 38px; }
  .nav .btn-sm { padding: 12px 15px; font-size: 14px; }
  .menu { margin-right: 4px; }
  .menu > div { right: -70px; }
  .stat { min-width: 0; }
  .stat strong { font-size: 36px; }
}
