/* =========================================================
   KNK Brand Strategy Agency — estilos del sitio
   ========================================================= */

/* ---------- Tipografía ---------- */
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Book.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }

/* ---------- Variables de marca ---------- */
:root {
  --amber: #FAB81B;
  --orange: #F47721;
  --coral: #EB5D27;
  --magenta: #ED008C;
  --purple: #8D3089;
  --ink: #58595B;
  --ink-2: #6D6E71;
  --muted: #808183;
  --ghost: #B8BABB;
  --line: #E2E3E4;
  --paper: #F1F2F2;
  --white: #FFFFFF;
  --gradient: linear-gradient(90deg, #F47721 0%, #ED008C 100%);
  --gradient-wide: linear-gradient(120deg, #FAB81B 0%, #F47721 40%, #ED008C 100%);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--magenta); text-decoration: none; }
a:hover { color: var(--purple); }
h1, h2, h3, h4, h5, p { margin: 0; }
::selection { background: var(--magenta); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Tipos de texto ---------- */
.kicker { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ghost); font-weight: 400; }
.title { font-weight: 900; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin-top: 16px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 56ch; margin-top: 22px; }
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.subhead { font-weight: 700; font-size: 20px; color: var(--ink); margin: 0 0 20px; }
.subhead-sm { font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ghost); margin: 0 0 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 14px; padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--gradient); color: #fff; }
.btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(237, 0, 140, 0.28); }
.btn--outline { border-color: var(--magenta); color: var(--magenta); background: transparent; }
.btn--outline:hover { background: var(--magenta); color: #fff; }
.btn--white { background: #fff; color: var(--magenta); }
.btn--white:hover { color: var(--magenta); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--lg { padding: 18px 38px; font-size: 15px; }

/* ---------- Header / navegación ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
/* Volvemos a la distribución original equilibrada en tres bloques */
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

/* MODIFICACIÓN: Cambiamos a column y alineamos a la izquierda para que el texto quede abajo de la imagen */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 0; }
.brand img { height: 28px; width: auto; } /* Achicamos un pelín la imagen para mantener la altura del header balanceada */
.brand__tag { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-bottom: 0; }
.brand__tag b { font-weight: 700; }

/* MENU ORIGINAL: Restauramos la separación de 20px y la letra en 13px como estaba al principio */
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--magenta); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------- Hero ---------- */
.hero { padding: 110px 0 84px; }
.dots { display: inline-flex; gap: 9px; margin-bottom: 40px; }
.dots span { width: 12px; height: 12px; border-radius: 999px; }
.hero h1 { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ghost); font-weight: 400; }
.hero__statement { margin-top: 18px; font-weight: 900; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.03; letter-spacing: -0.02em; color: var(--ink); max-width: 16ch; }
.hero__statement .text-gradient { background: linear-gradient(90deg, #FAB81B 0%, #F47721 42%, #ED008C 100%); -webkit-background-clip: text; background-clip: text; }
.hero__lead { margin-top: 32px; font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.hero__lead b { color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- Bloques de dos columnas ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split--about { grid-template-columns: 0.85fr 1.15fr; }
.checklist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; list-style: none; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.checklist li::before { content: ""; flex: 0 0 12px; height: 12px; margin-top: 6px; border-radius: 999px; background: var(--c, var(--magenta)); }

/* ---------- Servicios ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 34px 30px; transition: box-shadow .25s ease, transform .25s ease; }
.service:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06); transform: translateY(-3px); }
.service__num { font-weight: 700; font-size: 15px; letter-spacing: 0.14em; color: var(--c, var(--amber)); }
.service h3 { margin: 14px 0 10px; font-weight: 700; font-size: 22px; color: var(--ink); }
.service p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.service--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.service__quote { font-weight: 700; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.4; }

/* ---------- Tarjetas de casos y videos ---------- */
.dash { margin: 28px 0 40px; width: 220px; height: 3px; border-radius: 999px; background: var(--gradient);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 18px);
  mask-image: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 18px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 1420 / 528; background: var(--paper); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__media--zoom { cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.card__media--zoom:hover img { transform: scale(1.03); }
.card__body { padding: 28px 30px 32px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card__head h3 { font-weight: 700; font-size: 22px; color: var(--ink); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c, var(--magenta)); background: var(--paper); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.card__text { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.card__services { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ghost); line-height: 1.5; }
.card__more { margin-top: 14px; display: inline-block; font-size: 14px; font-weight: 700; }

/* ---------- Videos (carga liviana: miniatura + play) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 999px; background: rgba(237, 0, 140, 0.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform .2s ease; }
.video:hover .video__play { transform: scale(1.08); }
.video--short { aspect-ratio: 9 / 16; border-radius: 16px; flex: 0 0 180px; }

.videos-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.videos-intro p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 68ch; }
.snack { display: flex; flex-direction: column; gap: 32px; }
.snack h5 { font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.snack p { font-size: 15px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; max-width: 60ch; }
.snack__row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.center { text-align: center; margin-top: 24px; }

/* ---------- Marcas (grilla rotativa) ---------- */
.logos { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.logos__cell { aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; padding: 18px; transition: opacity .7s ease; }
.logos__cell img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.logos__cell.is-hidden { opacity: 0; }

/* ---------- Testimonios ---------- */
.slider { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; }
.slider__track { display: flex; transition: transform .5s cubic-bezier(.16, .84, .44, 1); }
.quote { flex: 0 0 100%; padding: 44px clamp(28px, 6vw, 72px); }
.quote__mark { font-weight: 900; font-size: 44px; line-height: 0.8; }
.quote p { margin-top: 10px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.64; color: var(--ink); text-wrap: pretty; }
.quote footer { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.quote strong { font-size: 16px; color: var(--ink); }
.quote span { font-size: 14px; color: var(--muted); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider__arrow { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.slider__arrow:hover { border-color: var(--magenta); color: var(--magenta); }
.slider__dots { display: inline-flex; gap: 10px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: #DCDCDD; transition: background .2s; }
.slider__dots button.is-active { background: var(--magenta); }

/* ---------- Sobre Axel ---------- */
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: #E9EAEB; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.role { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); margin-top: 10px; }

/* ---------- Contacto ---------- */
.contact { background: var(--gradient-wide); color: #fff; }
.contact__inner { max-width: 1000px; margin: 0 auto; padding: 104px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__logo { height: 44px; width: auto; }
.contact h2 { margin-top: 32px; font-weight: 900; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -0.02em; color: #fff; }
.contact__lead { margin-top: 22px; font-size: 20px; line-height: 1.6; color: rgba(255, 255, 255, 0.95); max-width: 52ch; }
.contact .btn--white { margin-top: 38px; }
.contact__links { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 44px; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; }
.contact__link { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 15px; font-weight: 500; }
.contact__link:hover { color: #fff; opacity: .85; }
.contact__icon { width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.6); display: inline-flex; align-items: center; justify-content: center; }

.form { margin-top: 56px; width: 100%; max-width: 560px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form h3 { font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 4px; }
.form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form input, .form textarea { width: 100%; padding: 13px 16px; border-radius: 10px; border: 0; font: inherit; font-size: 15px; color: var(--ink); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(255, 255, 255, 0.6); }
.form .btn { width: 100%; margin-top: 4px; }
.form__note { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.form__note a { color: #fff; text-decoration: underline; }
.hp { display: none !important; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 32px; max-width: var(--container); margin: 0 auto; }
.footer, .footer a { font-size: 13px; color: var(--ghost); }
.footer a:hover { color: var(--magenta); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer .brand img { height: 26px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 58px; height: 58px; border-radius: 999px; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(20, 20, 22, 0.92); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 94vw); max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { font-size: 12px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--paper); }
  .nav .btn { margin-top: 16px; }
  body.nav-open { overflow: hidden; }

  .split, .split--about, .service--wide { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero__actions .btn { width: 100%; }
  .brand__tag { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .card__body { padding: 22px 20px 26px; }
  .card__media { aspect-ratio: 4 / 3; }
  .checklist { padding: 28px 24px; }
  .video--short { flex-basis: 150px; }
  .contact__inner { padding: 72px 20px; }
  .contact__lead br, .contact h2 br { display: none; }
  .form { padding: 24px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; padding: 28px 20px 96px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .lightbox { padding: 16px; }
}
