.brand {
  align-items: center;
  display: flex;
  gap: 1px;
  width: max-content;
}

.brand img {
  display: block;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

.brand .logo span {
  color: currentColor;
}

.brand .logo {
  display: inline-block;
  transform: translateY(6px);
}

.nav .brand {
  color: var(--amarillo);
}

.nav .brand .logo {
  color: var(--paper);
}

.nav .brand img {
  filter: brightness(0) saturate(100%) invert(97%) sepia(93%) saturate(1092%) hue-rotate(359deg) brightness(107%) contrast(107%);
}

footer .brand {
  color: var(--ink);
}

.contact {
  background-color: var(--amarillo);
}

.contact-whatsapp {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--amarillo);
  display: flex;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  gap: 18px;
  margin-top: 72px;
  padding: 17px 24px 18px;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
  width: max-content;
}

.contact-whatsapp:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-4px);
}

.contact-whatsapp span {
  font-size: 1.35em;
}

.contact-graphic {
  border: 0;
  border-radius: 0;
  height: clamp(140px, 17vw, 260px);
  position: absolute;
  right: 11vw;
  top: 19%;
  transform: none;
  width: clamp(140px, 17vw, 260px);
}

.contact-graphic::before {
  background: var(--ink);
  border: 0;
  border-radius: 3px 34px 34px 34px;
  content: "";
  height: 35%;
  left: 0;
  position: absolute;
  top: 8%;
  width: 70%;
}

.contact-graphic::after {
  border: 2px solid var(--ink);
  border-radius: 34px 3px 34px 34px;
  bottom: 9%;
  content: "";
  height: 43%;
  position: absolute;
  right: 0;
  width: 76%;
}

.contact-graphic span,
.contact-graphic span::before,
.contact-graphic span::after {
  background: var(--amarillo);
  border-radius: 50%;
  content: "";
  height: 9px;
  position: absolute;
  top: 20%;
  width: 9px;
}

.contact-graphic span { left: 14%; }
.contact-graphic span::before { left: 24px; top: 0; }
.contact-graphic span::after { left: 48px; top: 0; }

.contact-graphic i {
  background: var(--ink);
  bottom: 29%;
  font-size: 0;
  height: 2px;
  position: absolute;
  right: 13%;
  transform: none;
  width: 43%;
}

.contact-graphic i::after {
  background: var(--ink);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 12px;
  width: 68%;
}

.service-list a {
  grid-template-columns: 45px 1fr auto;
}

.service-list a h3 {
  margin-bottom: 13px;
}

.service-list a p {
  color: #65635e;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  max-width: 300px;
}

/* Minimal browser-window motif for the hero. */
.hero .orb-one {
  background: transparent;
  border: 2px solid var(--coral);
  border-radius: 0;
  box-shadow: inset 0 42px 0 var(--coral);
  height: 25vw;
  mix-blend-mode: normal;
  opacity: 1;
  transform: rotate(-8deg);
  width: 31vw;
}

.hero .orb-one::before {
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 16px 0 0 var(--coral), 32px 0 0 var(--coral);
  content: "";
  height: 7px;
  left: 15px;
  position: absolute;
  top: 16px;
  width: 7px;
}

.hero .orb-one::after {
  background: linear-gradient(var(--coral) 0 0) 20% 35% / 55% 2px no-repeat,
    linear-gradient(var(--coral) 0 0) 20% 52% / 38% 2px no-repeat,
    linear-gradient(var(--coral) 0 0) 20% 69% / 62% 2px no-repeat;
  content: "";
  inset: 42px 0 0;
  position: absolute;
}

.hero-title .word-3 {
  padding-left: 15vw;
  white-space: nowrap;
}

.site-showcase {
  display: grid;
  gap: 2.7vw;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-card .project-info {
  padding-bottom: 42px;
}

.site-browser {
  background: var(--paper);
  color: var(--ink);
  display: block;
  overflow: hidden;
  position: relative;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.site-browser:hover {
  transform: translateY(-8px);
}

.browser-top {
  align-items: center;
  background: #f7f5ef;
  display: grid;
  font: 9px var(--mono);
  grid-template-columns: 48px 1fr 20px;
  height: 43px;
  padding: 0 14px;
}

.browser-top b {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
}

.browser-dots,
.browser-dots::before,
.browser-dots::after {
  background: var(--ink);
  border-radius: 50%;
  content: "";
  display: block;
  height: 5px;
  position: absolute;
  width: 5px;
}

.browser-dots { position: relative; }
.browser-dots::before { left: 9px; }
.browser-dots::after { left: 18px; }

.site-screen {
  height: min(30vw, 390px);
  overflow: hidden;
  padding: 10% 9%;
  position: relative;
}

.more-screen {
  background: #222224;
  color: var(--amarillo);
}

.more-screen::before,
.more-screen::after {
  border: 1px solid rgba(255, 255, 1, .75);
  border-radius: 50%;
  content: "";
  height: 26vw;
  position: absolute;
  right: -9vw;
  top: 1vw;
  width: 26vw;
}

.more-screen::after {
  height: 17vw;
  right: -4vw;
  top: 5.5vw;
  width: 17vw;
}

.more-screen::before {
  display: none;
}

.more-screen::after {
  display: none;
}

.more-screen p,
.letra-screen p {
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .72;
  margin: 9% 0 0;
  position: relative;
  z-index: 1;
}

.more-screen em,
.letra-screen em {
  font-family: var(--serif);
  font-weight: 500;
}

.more-screen small,
.more-screen i,
.letra-screen small {
  bottom: 9%;
  font: 9px var(--mono);
  left: 9%;
  letter-spacing: .12em;
  position: absolute;
}

.more-screen i {
  left: auto;
  right: 9%;
}

.more-screen small {
  color: #fff;
}

.case-logo {
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.more-logo {
  height: 78%;
  margin: 0 auto;
  width: 96%;
}

.letra-logo {
  margin: 9% auto 0;
  width: 88%;
}

.letra-screen {
  background: #e8e1d8;
  color: #211f1e;
}

.letra-screen em { color: var(--coral); }

.news-lines {
  border-top: 1px solid var(--ink);
  bottom: 19%;
  left: 9%;
  position: absolute;
  right: 9%;
}

.news-lines i {
  border-bottom: 1px solid rgba(23, 23, 22, .55);
  display: block;
  height: 17px;
  width: 100%;
}

.news-lines i:nth-child(2) { width: 82%; }
.news-lines i:nth-child(3) { width: 63%; }

@media (max-width: 700px) {
  .contact-graphic {
    height: 108px;
    right: 28px;
    top: 38px;
    width: 108px;
  }

  .contact-graphic span,
  .contact-graphic span::before,
  .contact-graphic span::after {
    height: 6px;
    width: 6px;
  }

  .contact-graphic span::before { left: 18px; }
  .contact-graphic span::after { left: 36px; }

  .hero-title .word-3 {
    font-size: .72em;
    padding-left: 0;
  }

  .site-showcase {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .site-screen { height: 72vw; }
  .more-screen::before { height: 62vw; right: -24vw; top: 3vw; width: 62vw; }
  .more-screen::after { height: 42vw; right: -12vw; top: 14vw; width: 42vw; }
}

@media (max-width: 700px) {
  .hero .orb-one {
    box-shadow: inset 0 30px 0 var(--coral);
    height: 46vw;
    width: 56vw;
  }

  .hero .orb-one::before {
    top: 11px;
  }

  .contact-whatsapp {
    margin-top: 55px;
  }
}

@media (max-width: 700px) {
  footer .brand {
    display: none;
  }
}

.contact .contact-whatsapp {
  margin-top: 28px;
}

/* ===== SECCIÓN 02 — CARRUSEL DE PROYECTOS ===== */
.work .project-carousel {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 58px 46px;
  position: relative;
  width: min(86vw, 1120px);
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform .65s cubic-bezier(.2, .75, .15, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-browser {
  background: var(--paper);
  color: var(--ink);
  display: block;
  overflow: hidden;
  position: relative;
}

.carousel-browser img {
  display: block;
  height: clamp(350px, 40vw, 520px);
  object-fit: cover;
  object-position: top center;
  transition: transform .65s cubic-bezier(.2, .75, .15, 1);
  width: 100%;
}

a.carousel-browser:hover img {
  transform: scale(1.025);
}

.work .carousel-browser .browser-top {
  height: 39px;
  position: relative;
  z-index: 1;
}

.carousel-caption {
  align-items: end;
  border-bottom: 1px solid #3d3d3b;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto;
  min-height: 124px;
  padding: 20px 0 22px;
}

.carousel-caption h3,
.carousel-caption p {
  margin: 0;
}

.carousel-caption h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.carousel-caption .case-type {
  color: var(--amarillo);
  font: 9px var(--mono);
  letter-spacing: .08em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.carousel-caption h3 + p {
  color: #b6b5ae;
  font-size: 12px;
  margin-top: 11px;
  max-width: 445px;
}

.carousel-caption > span {
  color: #b6b5ae;
  font: 10px var(--mono);
}

.carousel-control {
  align-items: center;
  background: transparent;
  border: 1px solid #5c5b58;
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  font: 1.45rem var(--sans);
  height: 42px;
  justify-content: center;
  padding: 0 0 3px;
  position: absolute;
  top: 39%;
  transition: background-color .2s, color .2s, transform .2s;
  width: 42px;
}

.carousel-control:hover {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--ink);
  transform: scale(1.08);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-status {
  align-items: center;
  bottom: 0;
  color: #b6b5ae;
  display: flex;
  font: 10px var(--mono);
  gap: 9px;
  left: 58px;
  position: absolute;
}

.carousel-status .carousel-current { color: var(--paper); }
.carousel-status i { background: #777671; display: block; height: 1px; width: 28px; }

.carousel-dots {
  bottom: 0;
  display: flex;
  gap: 7px;
  position: absolute;
  right: 58px;
}

.carousel-dots button {
  background: #666560;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 7px;
  padding: 0;
  transition: background-color .2s, transform .2s;
  width: 7px;
}

.carousel-dots button.is-active {
  background: var(--amarillo);
  transform: scale(1.25);
}

@media (max-width: 700px) {
  .work .project-carousel {
    padding: 0 0 39px;
    width: 100%;
  }

  .carousel-browser img {
    height: 76vw;
  }

  .work .carousel-browser .browser-top {
    height: 34px;
  }

  .carousel-caption {
    min-height: 116px;
    padding: 17px 0 19px;
  }

  .carousel-caption h3 { font-size: 1.65rem; }
  .carousel-caption h3 + p { font-size: 11px; max-width: 240px; }

  .carousel-control {
    background: var(--ink);
    border-color: #777671;
    height: 36px;
    top: 25vw;
    width: 36px;
    z-index: 2;
  }

  .carousel-prev { left: 9px; }
  .carousel-next { right: 9px; }
  .carousel-status { left: 0; }
  .carousel-dots { right: 0; }
}


/* ===== ALTURA UNIFICADA DE SECCIONES =====
   Mantiene las secciones principales con una altura visual
   equivalente a la del hero, sin cortar contenido. */
.statement,
.work,
.services,
.offer,
.faq,
.contact {
  min-height: max(850px, 100vh);
}

@media (max-width: 700px) {
  .statement,
  .work,
  .services,
  .offer,
  .faq,
  .contact {
    min-height: 680px;
  }
}


/* ===== SECCIÓN 02 — PROYECTOS MÁS COMPACTOS ===== */
.work .site-showcase {
  width: min(920px, 78vw);
  margin: 0 auto;
  gap: 24px;
}

.work .site-browser {
  width: 100%;
}

.work .browser-top {
  height: 34px;
  grid-template-columns: 42px 1fr 18px;
  padding: 0 11px;
  font-size: 8px;
}

.work .browser-top b {
  font-size: 15px;
}

.work .site-screen {
  height: 245px;
  padding: 8% 8%;
}

.work .more-logo {
  height: 72%;
  width: 92%;
}

.work .letra-logo {
  width: 84%;
}

.work .project-info {
  padding: 13px 0 28px;
  grid-template-columns: 1fr 1.35fr auto;
  column-gap: 18px;
}

.work .project-info h3 {
  font-size: 16px;
}

.work .project-info p,
.work .project-info span {
  font-size: 10px;
  line-height: 1.35;
}

.work .all-work {
  margin-top: 82px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .work .site-showcase {
    width: min(760px, 88vw);
  }

  .work .site-screen {
    height: 215px;
  }
}

@media (max-width: 700px) {
  .work .site-showcase {
    width: 100%;
    gap: 0;
  }

  .work .site-screen {
    height: 72vw;
  }

  .work .project-info {
    grid-template-columns: 1fr auto;
    padding-bottom: 36px;
  }

  .work .project-info p {
    display: none;
  }

  .work .all-work {
    margin-top: 62px;
  }
}

/* ===== ENCABEZADOS UNIFICADOS — REFERENCIA SECCIÓN 04 =====
   La sección 04 usa padding superior de 110px y lateral de 4.5vw.
   Todas las secciones principales parten ahora del mismo punto X/Y. */
.statement,
.work,
.services,
.offer,
.faq,
.contact {
  padding-top: 110px;
}

.statement,
.services {
  padding-left: 4.5vw;
  padding-right: 4.5vw;
}

.statement .eyebrow,
.offer .eyebrow,
.faq .eyebrow,
.contact .eyebrow {
  margin-top: 0;
  margin-bottom: 36px;
}

.statement .eyebrow {
  margin-bottom: 36px;
}

.work .section-heading {
  margin-top: 0;
  margin-bottom: 36px;
}

.services .services-intro .eyebrow {
  margin-top: 0;
  margin-bottom: 36px;
}

/* El gráfico de contacto conserva su independencia del encabezado. */
.contact .contact-graphic {
  top: 25%;
}

@media (max-width: 700px) {
  .statement,
  .work,
  .services,
  .offer,
  .faq,
  .contact {
    padding-top: 80px;
  }

  .statement,
  .services {
    padding-left: 20px;
    padding-right: 20px;
  }

  .work {
    padding-left: 20px;
    padding-right: 20px;
  }

  .statement .eyebrow,
  .work .section-heading,
  .services .services-intro .eyebrow,
  .offer .eyebrow,
  .faq .eyebrow,
  .contact .eyebrow {
    margin-bottom: 40px;
  }

  .contact .contact-graphic {
    top: 27%;
  }
}

/* ===== SECCIÓN 02 — AJUSTE DE PROPORCIONES ===== */
.work .site-showcase {
  width: min(980px, 82vw);
  gap: 34px;
}

.work .site-screen {
  height: 270px;
}

/* El CTA conserva la misma lógica de respiración vertical del encabezado */
.work .all-work {
  margin-top: 112px;
}

@media (max-width: 900px) {
  .work .site-showcase {
    width: min(800px, 90vw);
    gap: 28px;
  }

  .work .site-screen {
    height: 235px;
  }

  .work .all-work {
    margin-top: 96px;
  }
}

@media (max-width: 700px) {
  .work .site-showcase {
    width: 100%;
    gap: 0;
  }

  .work .site-screen {
    height: 72vw;
  }

  .work .all-work {
    margin-top: 82px;
  }
}

/* ===== AJUSTE FINAL — SECCIÓN 02 / ENCABEZADOS ===== */
.work .site-showcase {
  width: min(1000px, 84vw);
  margin-left: auto;
  margin-right: auto;
  gap: 48px;
}

.work .site-screen {
  height: 280px;
}

.work .all-work {
  margin-top: 150px;
}

/* El encabezado de FAQ comparte el mismo eje X que el resto de secciones. */
.faq .eyebrow {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Un poco más de presencia para el título de la sección 03. */
.services h2 {
  font-size: clamp(3.4rem, 5.7vw, 6.4rem);
}

@media (max-width: 900px) {
  .work .site-showcase {
    width: min(820px, 90vw);
    gap: 36px;
  }

  .work .site-screen {
    height: 250px;
  }

  .work .all-work {
    margin-top: 125px;
  }
}

@media (max-width: 700px) {
  .work .site-showcase {
    width: 100%;
    gap: 0;
  }

  .work .site-screen {
    height: 72vw;
  }

  .work .all-work {
    margin-top: 105px;
  }

  .services h2 {
    font-size: 14vw;
  }
}

/* ===== OPTIMIZACIÓN MÓVIL ===== */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 118px;
  }

  .nav {
    align-items: center;
    min-height: 72px;
    padding: 0 20px;
  }

  .nav-links {
    -webkit-overflow-scrolling: touch;
    background: rgba(23, 23, 22, .96);
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    gap: 19px;
    left: 0;
    overflow-x: auto;
    padding: 12px 20px 13px;
    position: absolute;
    right: 0;
    scrollbar-width: none;
    top: 72px;
    white-space: nowrap;
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 9px; }
  .nav-cta { font-size: 10px; }

  .hero {
    min-height: 730px;
    padding-top: 182px;
  }

  .hero-meta {
    top: 139px;
  }

  .hero-title {
    font-size: 14.5vw;
  }

  .hero-title .word-2 { padding-left: 2vw; }
  .hero-title .word-3 { font-size: .76em; }

  .hero-bottom {
    align-items: flex-end;
    gap: 14px;
  }

  .hero-bottom p {
    max-width: 235px;
    width: auto;
  }

  .statement,
  .work,
  .services,
  .offer,
  .faq,
  .contact {
    min-height: auto;
  }

  .statement,
  .services,
  .offer,
  .faq,
  .contact {
    padding-bottom: 80px;
  }

  .statement h2 {
    font-size: 12.5vw;
    line-height: .96;
  }

  .statement-copy {
    margin-top: 36px;
  }

  .work .section-heading {
    margin-bottom: 29px;
  }

  .work .project-carousel {
    padding-bottom: 45px;
  }

  .carousel-track {
    touch-action: pan-y;
  }

  .carousel-browser img {
    height: 78vw;
  }

  .carousel-caption {
    gap: 14px;
    min-height: 126px;
  }

  .carousel-caption h3 + p {
    line-height: 1.45;
    max-width: 255px;
  }

  .work .all-work {
    margin-top: 52px;
  }

  .services {
    gap: 42px;
  }

  .service-list a {
    grid-template-columns: 34px 1fr 18px;
    padding: 21px 0 24px;
  }

  .service-list a h3 {
    font-size: 8.4vw;
  }

  .service-list a p {
    font-size: 12px;
    max-width: 270px;
  }

  .offer-grid {
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .offer-card {
    border-radius: 14px;
    padding: 25px 21px;
  }

  .offer-card h3 { font-size: 1.45rem; }
  .offer-card li { font-size: 13px; }
  .offer-card .btn-offer { min-height: 42px; }
  .offer-note { line-height: 1.45; }

  .faq h2,
  .offer h2 {
    font-size: 11.5vw;
    margin-bottom: 34px;
  }

  .faq-item summary {
    font-size: 15px;
    min-height: 62px;
    padding: 16px 17px;
  }

  .faq-item .faq-answer {
    font-size: 13px;
    padding: 0 17px 18px;
  }

  .contact {
    overflow: hidden;
  }

  .contact h2 {
    font-size: 13.5vw;
    line-height: .94;
    margin-top: 50px;
    position: relative;
    z-index: 1;
  }

  .contact .contact-graphic {
    opacity: .25;
    right: 18px;
    top: 34px;
  }

  .contact-lead {
    font-size: 14px;
    max-width: 300px;
  }

  .contact-whatsapp {
    font-size: .95rem;
    gap: 13px;
    padding: 16px 20px 17px;
  }

  footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 64px;
  }

  footer p { order: 2; }
  footer div { margin-left: auto; }

  .sticky-wa {
    bottom: max(16px, env(safe-area-inset-bottom));
    height: 52px;
    right: 16px;
    width: 52px;
  }
}

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