/* SODA — Social & Digital Agency · v33 (correcciones cliente) */

:root {
  --bg: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-alt: #f6f6f4;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #8a8a8a;
  --muted-strong: #5a5a5a;
  --line: #d8d6d2;
  --line-soft: rgba(10, 10, 10, 0.1);
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(64px, 10vh, 120px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --max-w: 1280px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible, .hero-banner :focus-visible {
  outline-color: #fff;
}

.skip {
  position: fixed; top: -60px; left: 16px;
  background: var(--ink); color: var(--bg);
  padding: 8px 12px; z-index: 200;
}
.skip:focus { top: 16px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--pad-x);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav.is-on-dark, .nav--on-dark-start:not(.is-scrolled), .nav--on-hero:not(.is-scrolled) {
  background: transparent;
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav--on-dark-start.is-scrolled, .nav--on-hero.is-scrolled {
  background: rgba(10,10,10,0.85);
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav__brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav__brand-sub {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
.nav--on-dark .nav__brand-sub,
.nav--on-hero .nav__brand-sub,
.nav--on-dark-start .nav__brand-sub,
.nav.is-on-dark .nav__brand-sub { color: rgba(255,255,255,0.55); }
.nav__menu {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 36px);
  font-size: 13px;
  font-weight: 400;
}
.nav__menu a {
  position: relative;
  padding: 4px 0;
  transition: opacity 0.25s var(--ease);
  opacity: 0.78;
}
.nav__menu a:hover, .nav__menu a.is-current { opacity: 1; }
.nav__menu a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
}
.nav__cta {
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.85;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.nav--on-dark .nav__cta:hover,
.nav--on-hero .nav__cta:hover,
.nav--on-dark-start .nav__cta:hover,
.nav.is-on-dark .nav__cta:hover { background: #fff; color: var(--ink); }
.nav__cta.is-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.nav__burger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
  justify-self: end;
}
.nav__burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--ink);
    color: #fff;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 88px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    font-size: 18px;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { opacity: 1; padding: 12px 0; }
  .nav__menu a.is-current::after { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; z-index: 101; }
}

/* ===== HERO BANNER (Home con 3 imágenes + SODA centrado) ===== */
.hero-banner {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}
.hero-banner__slides {
  position: absolute;
  inset: 0;
}
.hero-banner__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s var(--ease-smooth);
}
.hero-banner__slide.is-active { opacity: 1; }
.hero-banner__slide--video {
  background: var(--bg-dark);
}
.hero-banner__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-banner__overlay {
  /* Sin filtro: a pedido de Lucila, las imágenes del banner se ven limpias.
     Solo un gradiente muy sutil arriba/abajo para que el nav y el footer del banner se lean. */
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.hero-banner__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: calc(var(--nav-h) + 32px) var(--pad-x) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-banner__top {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  letter-spacing: 0.01em;
}
.hero-banner__logo {
  align-self: center;
  margin: auto;
  width: min(70%, 720px);
  animation: hero-fade 1.4s var(--ease) 0.2s both;
}
.hero-banner__logo img {
  width: 100%;
  height: auto;
  filter: invert(1) drop-shadow(0 4px 30px rgba(0,0,0,0.35));
  display: block;
}
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-banner__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-top: 10px;
  flex-wrap: wrap;
}
.hero-banner__dots {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-banner__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-banner__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 540px) {
  .hero-banner__logo { font-size: clamp(72px, 24vw, 140px); }
  .hero-banner__top, .hero-banner__foot { font-size: 10px; }
}

/* ===== DISPLAY (títulos grandes con punto) ===== */
.display {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.display strong, .display b { font-weight: 800; }

.eyebrow {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* ===== SECTION ===== */
.section {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
}
.section--dark { background: var(--bg-dark); color: #fff; }
.section--alt { background: var(--bg-alt); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.section__head-strip {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
}
.section--dark .section__head-strip {
  border-bottom-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
}

/* ===== BODY 2-COL (Somos SODA) ===== */
.body-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.body-2col p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 36ch;
}
.body-2col p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .body-2col { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== TEAM LIST (solo nombres, sin números ni descripciones) ===== */
.team-list {
  border-top: 1px solid var(--line-soft);
}
.team-list__row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.team-list__name {
  /* Igualado al tamaño de .services-grid__name a pedido de Lucila. */
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
.team-list__foot {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 32px 0 0;
  font-size: 14px;
}
.team-list__foot dt { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.team-list__foot dd { font-size: 18px; }
@media (max-width: 540px) {
  .team-list__row { padding: 18px 0; }
}

/* ===== SERVICES GRID (6 servicios) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.services-grid__cell {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.services-grid__num {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.services-grid__name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  position: relative;
  display: inline-block;
  width: max-content;
}
.services-grid__name::after {
  content: "→";
  display: inline-block;
  margin-left: 10px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.services-grid__name:hover::after { opacity: 0.85; transform: translateX(0); }
@media (max-width: 880px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
  }
  .services-grid__cell {
    flex-direction: row;
    align-items: baseline;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .services-grid__num { min-width: 26px; }
  .services-grid__name { font-size: 18px; }
}

/* ===== DETAIL LIST (servicios individuales) ===== */
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px clamp(24px, 4vw, 64px);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.detail-list__intro {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted-strong);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.detail-list__item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.detail-list__item h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}
.detail-list__item p {
  font-size: 13.5px;
  color: var(--muted-strong);
  line-height: 1.55;
}
@media (max-width: 700px) {
  .detail-list { grid-template-columns: 1fr; }
}

/* ===== BULLET 2COL (Pauta Publicitaria) ===== */
.bullet-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.bullet-2col__intro {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted-strong);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.bullet-2col__col h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}
.bullet-2col__sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.bullet-2col__list li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 8px 0 8px 18px;
  position: relative;
}
.bullet-2col__list li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--muted);
}
@media (max-width: 700px) {
  .bullet-2col { grid-template-columns: 1fr; }
}

/* ===== CLIENT PILLS (clickeables) ===== */
.client-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.client-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.client-pill:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===== CASES (9 fotos individuales por cliente) ===== */
.case {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.case.section--alt { background: var(--bg-alt); }
.case:last-of-type { border-bottom: 0; }
.case__inner { max-width: var(--max-w); margin: 0 auto; }
.case__strip {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.case__title {
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 16px;
}
.case__cta {
  display: inline-block;
  font-size: 12px;
  color: var(--muted-strong);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  margin-bottom: clamp(32px, 5vh, 56px);
  transition: color 0.25s var(--ease);
}
.case__cta:hover { color: var(--ink); }

.case__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--bg-alt);
  max-width: 720px;
  margin: 0 auto;
}
.case__cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.case__cell img,
.case__cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}
.case__cell:hover img,
.case__cell:hover video {
  transform: scale(1.04);
}
.case__cell--video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.04);
  z-index: 1;
  pointer-events: none;
}
.case__cell__play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 999px;
  font-size: 10px;
  z-index: 2;
  pointer-events: none;
}
.case__placeholder {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 1;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  color: var(--muted);
}
.case__placeholder p { font-size: 14px; }
.case__placeholder a {
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
@media (max-width: 640px) {
  .case__grid { grid-template-columns: 1fr 1fr; }
  .case { padding: clamp(48px, 8vh, 72px) var(--pad-x); }
}

/* ===== OTHER CLIENTS (también trabajamos con — grilla estática 3 columnas, no clickeable) ===== */
.other-clients-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 3;
  column-gap: 32px;
  border-top: 1px solid var(--line-soft);
}
.other-clients-grid__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  break-inside: avoid;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
}
@media (max-width: 880px) {
  .other-clients-grid { column-count: 2; column-gap: 24px; }
}
@media (max-width: 480px) {
  .other-clients-grid { column-count: 1; }
}

/* ===== CONTACT TABLE ===== */
.contact-table {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-table__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 16px;
  align-items: baseline;
}
.contact-table__row dt {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.contact-table__row dd { font-weight: 500; }
.contact-table__row a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.contact-table__row a:hover { border-bottom-color: rgba(255,255,255,0.5); }
@media (max-width: 540px) {
  .contact-table__row {
    grid-template-columns: 100px 1fr;
    gap: 12px;
    font-size: 14px;
  }
  .contact-table__row dt { font-size: 10px; }
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.footer--on-dark {
  background: var(--bg-dark);
  border-top-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer--on-dark .footer__inner { color: rgba(255,255,255,0.55); }
.footer__inner a:hover { color: var(--ink); }
.footer--on-dark .footer__inner a:hover { color: #fff; }

/* ===== IMG FADE ===== */
img.is-loading { opacity: 0; }
img.is-loaded { opacity: 1; transition: opacity 0.6s var(--ease); }
