/* ───────── Tokens ───────── */
:root {
  --paper: #faf9f7;
  --ink: #16130c;
  --yellow: #7df3e1;
  --orange: #ff5fa8;
  --cloud: #e3dedb;
  --muted: #4a4437;
  --gutter: clamp(16px, 4vw, 48px);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-pixel: "Silkscreen", monospace;
}

.is-hidden {
  display: none !important;
}

/* ───────── Toast ───────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 16px);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--orange);
  padding: 12px 20px;
  font-weight: 600;
  text-align: center;
  max-width: calc(100% - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* ───────── Base ───────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

/* ───────── Botones ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 6px 6px 0 var(--orange);
}

.btn--paper {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--ink-orange {
  background: var(--ink);
  color: var(--orange);
  box-shadow: 6px 6px 0 var(--paper);
}

.btn--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 17px;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ───────── Wordmark ───────── */
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark__pato {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark__tech {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  background: var(--orange);
  color: var(--ink);
  padding: 5px 8px 4px;
}

.wordmark--sm .wordmark__pato {
  font-size: 26px;
  color: var(--paper);
}

.wordmark--sm .wordmark__tech {
  font-size: 18px;
  padding: 5px 7px 4px;
}

/* ───────── Nav ───────── */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__brand img {
  height: 56px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 600;
}

.nav__link:hover {
  background: var(--yellow);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ───────── Nav: menú mobile (tablet e inferior), sidedrawer full-screen ───────── */
@media (max-width: 1024px) {
  .nav {
    position: relative;
    z-index: 60;
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 60;
  }

  .nav__links {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    padding: var(--gutter);
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0.25s ease;
  }

  .nav__links.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  .nav__link {
    width: 100%;
    justify-content: center;
    font-size: 22px;
  }

  .nav__links .btn--small {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__links {
    transition: none;
  }
}

/* ───────── Hero ───────── */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 104px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__mark {
  background: var(--yellow);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.hero__services-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.hero__lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.hero__media {
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 77 / 90;
  mix-blend-mode: multiply;
  background: var(--paper);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 78%, transparent 100%);
}

/* Tablets portrait chicas y mobile: el video del pato va más chico */
@media (max-width: 860px) {
  .hero__media {
    max-width: 220px;
  }
}

/* ───────── Servicios ───────── */
.services {
  background: var(--cloud);
  border-block: 2px solid var(--ink);
}

.services__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 96px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card__num {
  align-self: flex-start;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--ink);
  padding: 6px 10px 4px;
  line-height: 1;
}

.card__num--orange {
  background: var(--orange);
}
.card__num--yellow {
  background: var(--yellow);
}
.card__num--cloud {
  background: var(--cloud);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card__text {
  color: var(--muted);
  text-wrap: pretty;
}

/* ───────── Trabajos ───────── */
.work {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 96px;
}

.card--work {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.card__shot {
  aspect-ratio: 16 / 10;
  background: var(--cloud);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.tag {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 6px 10px 4px;
}

.work__link {
  font-weight: 600;
}

/* ───────── Carrusel de trabajos ───────── */
.carousel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.carousel__track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 min(400px, 100%);
  scroll-snap-align: start;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.carousel__btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: 4px 4px 0 var(--cloud);
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--orange);
}

/* ───────── Nosotros ───────── */
.about {
  background: var(--ink);
  color: var(--paper);
}

.about__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px;
  align-items: start;
  padding-block: 96px;
}

.about__head {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
}

.badge--lg {
  width: 120px;
  height: 120px;
}
.badge--lg img {
  height: 92px;
  width: auto;
  display: block;
}

.badge--sm {
  width: 56px;
  height: 56px;
}
.badge--sm img {
  height: 42px;
  width: auto;
  display: block;
}

.accent {
  color: var(--orange);
}

.reasons {
  display: flex;
  flex-direction: column;
}

.reason {
  border-top: 2px solid var(--orange);
  padding-block: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reason__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.reason__text {
  color: var(--cloud);
  text-wrap: pretty;
}

/* ───────── Contacto ───────── */
.contact {
  background: var(--orange);
  border-block: 2px solid var(--ink);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding-block: 96px;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14em;
  text-wrap: balance;
}

.contact__lead {
  font-size: 20px;
  max-width: 32em;
  text-wrap: pretty;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ───────── Footer ───────── */
.footer {
  background: var(--ink);
  color: var(--cloud);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__note {
  font-size: 15px;
  text-wrap: pretty;
}
