/*
 * Tema Creahtiva. Medidas del frame "Home" #153:3 (1460 px de ancho). Variables de color/tipo en tokens.css (generado).
 * Interlineado "Auto" de Figma = natural de la fuente: Poppins 1.5, Inter 1.21.
 * .sec: márgenes laterales del diseño (--l / --r, en px a 1460) que se reducen en proporción en pantallas angostas.
 */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-surface-page);
  color: var(--color-ink);
  font-family: var(--font-poppins);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 16px; background: #fff; }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { display: inline-block; flex: none; }
.inter { font-family: var(--font-inter); line-height: 1.21; }

.sec {
  --l: 133; --r: 152;
  width: 100%;
  max-width: 1460px;
  margin-inline: auto;
  padding-left: clamp(16px, calc(var(--l) * 100vw / 1460), calc(var(--l) * 1px));
  padding-right: clamp(16px, calc(var(--r) * 100vw / 1460), calc(var(--r) * 1px));
}

/* ------------------------------------------------------------------ botones (ctaheroOutline y variantes) */
.btn {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 42px; padding: 0 16px; border-radius: 1000px;
  font-family: var(--font-inter); font-weight: 700; font-size: 14px; line-height: 1.21;
  text-decoration: none; white-space: nowrap;
}
.btn__icon { width: 24px; height: 24px; }
.btn--dark { background: var(--color-surface-dark); border: 2px solid var(--color-surface-dark); color: var(--color-white-cta); }
.btn--outline { border: 2px solid #fff; color: #fff; }
.btn--outline-thin { height: 32px; padding: 0 10px; gap: 0; border: 1px solid #fff; color: #fff; font-weight: 400; }
.btn--outline-thin .btn__icon { margin-right: 0; }
.btn--link-light, .btn--link-dark { padding: 0 16px; text-decoration: underline; text-underline-offset: 2px; }
.btn--link-light { color: #fff; }
.btn--link-dark { height: 24px; padding: 0; font-family: var(--font-poppins); font-weight: 400; line-height: 1.5; color: #000; }
.btn--filled-thin { height: 32px; padding: 0 10px; gap: 0; background: var(--color-surface-dark); border: 1px solid var(--color-surface-dark); color: #fff; font-weight: 400; }
.btn--link-ink { padding: 0 16px; text-decoration: underline; text-underline-offset: 2px; color: #000; }
.btn--link-thin { height: 32px; padding: 0 10px; gap: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; color: #000; }
a.btn { transition: opacity .2s; }
a.btn:hover { opacity: .85; }
.btn--submit { cursor: pointer; }
.btn--submit::after {
  content: ""; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url('../icons/chevron-right.svg') center / contain no-repeat; mask: url('../icons/chevron-right.svg') center / contain no-repeat;
}

/* ------------------------------------------------------------------ cabecera (Frame 111 #153:4) */
.site-header { background: #fff; position: relative; z-index: 20; }
.site-header__inner {
  max-width: 1460px; margin-inline: auto; height: 72px;
  padding: 16px 44px 16px 24px; /* el frame de la cabecera mide 1440: el contenido termina a 44 px del borde */
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo { display: block; width: 125px; height: 40px; }
.site-header__logo img { width: 125px; height: 40px; object-fit: cover; }
.site-header__name { font-weight: 700; font-size: 20px; text-decoration: none; }
.site-nav__menu { display: flex; align-items: center; gap: 12px; font-family: var(--font-inter); font-size: 14px; line-height: 1.21; }
.site-nav__menu a { text-decoration: none; display: block; }
.site-nav__menu .current-menu-item > a { font-weight: 700; }
.site-nav__menu a:hover { text-decoration: underline; }
.site-nav__menu .menu-cta { margin-left: 12px; } /* 24 px entre los ítems y "Contratar" */
.site-nav__menu .menu-cta > a {
  height: 32px; padding: 0 24px; display: flex; align-items: center;
  border: 1px solid #000; border-radius: 1000px; font-size: 12px; font-weight: 700;
}
.site-nav__menu .menu-cta > a:hover { text-decoration: none; background: #000; color: #fff; }
.site-header__toggle { display: none; }

/* ------------------------------------------------------------------ hero (heroSection 2 #153:31) */
.hero { position: relative; min-height: 750px; display: flex; color: #fff; background: #000; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--overlay, .25)); }
.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: 1460px; margin-inline: auto;
  padding: 388px 0 0 clamp(16px, calc(50 * 100vw / 1460), 50px);
}
.hero__title { max-width: 572px; font-family: var(--font-inter); font-weight: 700; font-size: 40px; line-height: 1.2; }
.hero__text { max-width: 572px; margin-top: 14px; font-family: var(--font-inter); font-size: 14px; line-height: 1.21; }
.hero .btn { margin-top: 18px; }
.hero .btn__icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ problema (Frame 133 #153:16) */
.problem { --l: 133; --r: 152; margin-top: 112px; display: flex; align-items: center; gap: 25px; }
.problem__mosaic { position: relative; flex: 0 1 575px; aspect-ratio: 575 / 568; }
.problem__img { position: absolute; width: 30.435%; height: auto; aspect-ratio: 175 / 260; object-fit: cover; }
.problem__img--1 { left: 0; top: 5.81%; aspect-ratio: 175 / 136; }
.problem__img--2 { left: 0; top: 32.92%; }
.problem__img--3 { left: 34.783%; top: 5.81%; }
.problem__img--4 { left: 34.783%; top: 54.23%; }
.problem__img--5 { left: 69.565%; top: 0; }
.problem__img--6 { left: 69.565%; top: 49.12%; }
.problem__body { flex: 0 1 575px; }
.problem__title { font-weight: 700; font-size: 32px; line-height: 1.5; }
.problem__text { margin-top: 16px; font-size: 12px; line-height: 1.5; }
.problem .btn { margin-top: 16px; }

/* ------------------------------------------------------------------ clientes (Frame 116 #153:40) */
.clients { margin-top: 54px; background: var(--color-surface-dark); color: #fff; }
.clients__inner { --l: 137; --r: 137; padding-top: 32px; padding-bottom: 32px; min-height: 228px; }
.clients__title { font-weight: 700; font-size: 40px; line-height: 1.5; }
.clients__text { margin-top: 8px; }
.clients__logos { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 43px; }
.clients__logo { height: 51px; width: auto; }

/* ------------------------------------------------------------------ banner de caso (banner2 #153:355 / #153:347) */
.case-banner { margin-top: 107px; }
.case-banner + .services { margin-top: 158px; }
.case-banner__box {
  position: relative; max-width: 1172px; min-height: 540px; margin-left: max(16px, calc(151 * min(100vw, 1460px) / 1460 + (100vw - min(100vw, 1460px)) / 2));
  margin-right: 16px; border-radius: 32px; overflow: hidden; display: flex; color: var(--color-white-soft);
}
@media (min-width: 1460px) { .case-banner__box { margin-inline: auto; transform: translateX(7px); } }
.case-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-banner__box::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .2); }
.case-banner__panel {
  position: relative; z-index: 2; width: 49.744%; padding: 0 44px; background: rgba(22, 24, 35, .75);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
}
.case-banner--right .case-banner__panel { margin-left: auto; }
.case-banner__title { font-family: var(--font-inter); font-weight: 700; font-size: 36px; line-height: 1.21; max-width: 495px; }
.case-banner__text { font-family: var(--font-inter); font-size: 14px; line-height: 1.21; max-width: 495px; }
.case-banner .btn { margin-top: 0; }

/* ------------------------------------------------------------------ encabezados de sección */
.heading__title { font-weight: 700; font-size: 40px; line-height: 1.5; max-width: 771px; }
.heading__text { margin-top: 14px; }
.heading--services { --l: 143; --r: 143; }
.heading--eco .heading__title { font-family: var(--font-inter); line-height: 1.2; max-width: 775px; }
.heading--eco .heading__text { font-family: var(--font-inter); line-height: 1.21; max-width: 775px; }

/* ------------------------------------------------------------------ carruseles (desplazamiento horizontal) */
.carousel {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging * { pointer-events: none; }

/* ------------------------------------------------------------------ servicios (Frame 134 #219:1774) */
.services__track {
  --l: 133;
  gap: 31px; margin-top: 48px;
  padding-left: max(16px, calc(var(--l) * min(100vw, 1460px) / 1460 + (100vw - min(100vw, 1460px)) / 2));
  padding-right: 16px;
  scroll-padding-left: max(16px, calc(var(--l) * min(100vw, 1460px) / 1460 + (100vw - min(100vw, 1460px)) / 2));
}
.svc-card {
  position: relative; width: 359px; height: 423px; border-radius: 32px; overflow: hidden; color: #fff; background: var(--color-surface-dark);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.svc-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(22, 24, 35, .067) 44.8%, rgba(22, 24, 35, .8) 54.9%, #161823 70%);
}
.svc-card--shade::before {
  background: linear-gradient(180deg, rgba(22, 24, 35, .067) 44.8%, rgba(22, 24, 35, .8) 54.9%, #161823 70%), rgba(0, 0, 0, .35);
}
.svc-card__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* Poppins/Inter web miden ~1–4 % más que en Figma: las cajas de texto ganan unos px a la derecha para cortar las
   líneas donde el diseño (sin mover nada a la izquierda). */
.svc-card__body { margin-right: -10px; }
.svc-card__title { font-weight: 700; font-size: 28px; line-height: 1.5; }
.svc-card:nth-child(2) .svc-card__title { font-size: 22px; } /* en el diseño la 2.ª tarjeta va en 22 px */
.svc-card__text { max-width: 311px; }

/* ------------------------------------------------------------------ tabs (Frame 135 #153:84 + panel) */
.tabs { --l: 120; --r: 141; margin-top: 132.5px; }
.tabs__progress { position: relative; height: 31px; margin: 0 1px 0 23px; }
.tabs__progress::before, .tabs__fill {
  content: ""; position: absolute; left: 0; top: 10px; height: 12px; border-radius: 1000px;
}
.tabs__progress::before { right: 0; background: var(--color-progress-track); }
.tabs__fill { width: 21px; background: var(--color-progress-fill); transition: width .4s ease; }
.tabs__knob {
  position: absolute; top: 0; left: 5px; width: 31px; height: 31px; border-radius: 50%;
  background: var(--color-progress-fill); transition: left .4s ease;
}
.tabs__list { margin-top: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tabs__tab {
  max-width: 252px; padding: 0; border: 0; background: none; text-align: left;
  font-family: var(--font-poppins); font-weight: 700; font-size: 20px; line-height: 1.5; color: #000;
}
button.tabs__tab { cursor: pointer; }
button.tabs__tab[aria-selected="false"]:hover { text-decoration: underline; }
/* carrusel de paneles (nota #213:1509): pista con los paneles en fila, se desliza al panel del tab elegido */
.tabs__viewport { margin-top: 48px; overflow: hidden; touch-action: pan-y; transition: height .5s ease; }
.tabs__track { display: flex; align-items: flex-start; transition: transform .5s ease; }
.tabs.is-dragging .tabs__track { transition: none; }
.tabs.is-dragging .tabs__viewport { cursor: grabbing; user-select: none; }
@media (prefers-reduced-motion: reduce) { .tabs__viewport, .tabs__track, .tabs__fill, .tabs__knob { transition: none; } }
.tabs__panel { flex: 0 0 100%; min-width: 0; padding: 0 8px 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tabs__body { flex: 0 1 575px; }
.tabs__title { font-weight: 700; font-size: 40px; line-height: 1.5; }
.tabs__text { margin-top: 16px; }
.tabs .btn { margin-top: 16px; }
.tabs__img { flex: 0 1 531px; width: 531px; aspect-ratio: 531 / 635; height: auto; object-fit: cover; }
.tabs + .case-banner { margin-top: 78px; }

/* ------------------------------------------------------------------ ecosistema (Frame #156:858) */
.eco { margin-top: 85px; background: var(--color-surface-dark); color: #fff; }
.eco__inner { --l: 143; --r: 144; padding-top: 96px; padding-bottom: 132px; }
.eco__grid { margin-top: 89px; display: grid; grid-template-columns: repeat(3, minmax(0, 375px)); gap: 24px; align-items: center; }
.eco-card { display: flex; flex-direction: column; gap: 30px; }
.eco-card__img { width: 100%; aspect-ratio: 375 / 247; height: auto; object-fit: cover; border-radius: 20px; }
.eco-card--tall .eco-card__img { aspect-ratio: 375 / 277; }
.eco-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.eco-card__title { font-weight: 700; font-size: 24px; line-height: 1.5; }
.eco-card .btn { margin-left: 0; }

/* ------------------------------------------------------------------ feed TikTok (#153:89–#153:91) */
.feed { margin-top: 12px; }
.feed__head { --l: 158; --r: 160; }
.feed__title { margin-left: 2px; max-width: 769px; font-weight: 700; font-size: 40px; line-height: 1.5; }
.feed__text { margin-top: 18px; max-width: 671px; }
.feed__track {
  --l: 191;
  gap: 20px; margin-top: 32px;
  padding-left: max(16px, calc(var(--l) * min(100vw, 1460px) / 1460 + (100vw - min(100vw, 1460px)) / 2));
  padding-right: 16px;
  scroll-padding-left: max(16px, calc(var(--l) * min(100vw, 1460px) / 1460 + (100vw - min(100vw, 1460px)) / 2));
}
.tt { width: 265px; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-inter); line-height: 1.21; }
.tt__media { position: relative; height: 538px; overflow: hidden; background: #000; }
.tt__video { width: 100%; height: 100%; object-fit: cover; }
.tt__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); pointer-events: none; }
.tt__play {
  position: absolute; z-index: 2; left: 110px; top: 247px; width: 45px; height: 45px; padding: 0; border: 0;
  background: none; color: #fff; cursor: pointer;
}
.tt__play .icon { width: 45px; height: 45px; }
.tt.is-playing .tt__play { opacity: 0; }
.tt.is-playing .tt__play:focus-visible { opacity: 1; }
.tt.is-playing .tt__media::after { background: none; }
.tt__badge { position: absolute; z-index: 1; top: 12px; left: 215px; width: 36.1px; height: 41px; object-fit: contain; }
.tt__rail {
  position: absolute; z-index: 1; left: 214px; top: 177px; width: 40px;
  display: flex; flex-direction: column; gap: 14px; align-items: center; color: #fff;
  font-weight: 700; font-size: 12px; text-align: center;
}
.tt__rail li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tt__rail .icon { width: 35px; height: 35px; color: #f8f8f8; }
.tt__rail .icon-comment { color: #fff; }
.tt__avatar { position: relative; width: 40px; height: 46px; }
.tt__avatar-img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff; object-fit: cover; }
.tt__follow {
  position: absolute; left: 14px; top: 33px; width: 13px; height: 13px; border-radius: 6.5px;
  background: var(--color-tiktok-red); display: grid; place-items: center; color: #f8f8f8;
}
.tt__follow .icon { width: 8px; height: 8px; }
.tt__meta { display: flex; flex-direction: column; gap: 8px; }
.tt__line { position: relative; height: 27px; }
.tt__more { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tt__more .icon { width: 25px; height: 25px; }
.tt__fade {
  position: absolute; left: 137px; top: 1px; width: 31px; height: 25px;
  background: linear-gradient(102deg, rgba(217, 217, 217, 0) 31.2%, rgba(227, 230, 233, .503) 54.4%, #edf2f9 95.6%);
}
.tt__cta {
  position: absolute; right: 0; top: 0; width: 107px; height: 27px; display: grid; place-items: center;
  background: var(--color-tiktok-red); color: #fff; font-weight: 700; font-size: 12px; text-decoration: none;
}
.tt__desc { border-top: 1px solid var(--color-line); padding: 8px 0 4px; display: flex; flex-direction: column; gap: 8px; color: var(--color-surface-dark); font-weight: 600; font-size: 14px; }
.tt__text { font-weight: 400; }
.tt__text strong { font-weight: 700; }
.tt__music { display: flex; align-items: center; gap: 10px; color: var(--color-surface-dark); font-size: 14px; }
.tt__music .icon { width: 14px; height: 14px; color: var(--color-c-0a0a0a); }

/* ------------------------------------------------------------------ bloques IA (#153:272–#153:291) */
.feature { max-width: 1460px; margin: 113px auto 0; display: flex; align-items: flex-start; }
.feature + .feature { margin-top: 63px; }
.feature__img { flex: 0 1 710px; width: 710px; aspect-ratio: 710 / 682; height: auto; object-fit: cover; }
.feature__body { flex: 0 1 575px; padding-top: 180px; }
.feature--img-left .feature__body { margin-left: clamp(16px, calc(24 * 100vw / 1460), 24px); margin-right: 16px; }
.feature--img-right { flex-direction: row-reverse; }
.feature--img-right .feature__body { margin-left: clamp(16px, calc(133 * 100vw / 1460), 133px); margin-right: clamp(16px, calc(42 * 100vw / 1460), 42px); }
.feature__title { font-weight: 700; font-size: 40px; line-height: 1.5; }
.feature__text { margin-top: 16px; }
.feature .btn { margin-top: 16px; }

/* ------------------------------------------------------------------ contacto (#153:295–#153:341) */
.contact { --l: 133; --r: 142; margin-top: 78px; display: flex; align-items: flex-start; gap: 35px; }
.contact__img { flex: 0 1 575px; width: 575px; aspect-ratio: 575 / 744; height: auto; object-fit: cover; }
.contact__body { flex: 0 1 575px; padding-top: 33px; }
.contact__title { font-weight: 700; font-size: 40px; line-height: 1.5; }
.contact__text { margin-top: 4px; }
.contact__form { margin-top: 66px; }
.contact__form form { display: flex; flex-direction: column; align-items: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.field + .field { margin-top: 24px; }
.field--area { margin-top: 17px !important; }
.field__label { font-weight: 700; font-size: 14px; line-height: 1.5; }
.field .wpcf7-form-control-wrap { display: block; }
.field input, .field textarea {
  display: block; width: 100%; height: 38px; padding: 9px 23px; margin: 0;
  background: #fff; border: 1px solid var(--color-input-border); border-radius: 8px;
  font-family: var(--font-poppins); font-size: 12px; line-height: 1.5; color: #000;
}
.field textarea { height: 174px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #000; opacity: 1; }
.contact__form .btn--submit { margin: 24px 0 0 -11px; }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 12px; color: #b00020; }
.wpcf7-response-output { margin: 16px 0 0; font-size: 12px; }
.wpcf7-spinner { display: none; }
.contact__form fieldset { margin: 0; padding: 0; border: 0; }

/* ------------------------------------------------------------------ pie (Frame 123 #153:297) */
.site-footer { margin-top: 80px; background: var(--color-surface-dark); color: #fff; }
.site-footer__inner {
  max-width: 1460px; min-height: 451px; margin-inline: auto;
  padding: 86px clamp(16px, calc(124 * 100vw / 1460), 124px) 48px clamp(16px, calc(93 * 100vw / 1460), 93px);
  display: flex; gap: 59px;
}
.site-footer__brand { flex: 0 0 415px; display: flex; flex-direction: column; gap: 27px; }
.site-footer__logo {
  display: block; width: 315px; height: 98px; background: #fff;
  -webkit-mask: var(--logo) center / cover no-repeat; mask: var(--logo) center / cover no-repeat;
}
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer__nav { flex: 1; display: flex; justify-content: space-between; gap: 24px; padding-top: 22.5px; }
.site-footer__columns { display: flex; gap: 24px; align-items: flex-start; }
.site-footer__col { width: 132px; display: flex; flex-direction: column; gap: 8px; }
.site-footer__title { font-weight: 700; font-size: 22px; line-height: 1.5; text-decoration: none; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer__link { text-decoration: none; }
a.site-footer__link:hover, a.site-footer__title:hover { text-decoration: underline; }
.site-footer__social { display: flex; gap: 23px; align-items: flex-start; height: 27px; }
.site-footer__social a, .site-footer__social span[role] { display: block; color: #f5f5f5; }
.site-footer__social .icon { width: 27px; height: 27px; }
.site-footer__social .icon-social-linkedin { height: 25.5px; margin-top: 0.8px; }
.icon-mask { background: #fff; -webkit-mask: url('../icons/social-tiktok.png') center / contain no-repeat; mask: url('../icons/social-tiktok.png') center / contain no-repeat; }

/* ------------------------------------------------------------------ páginas por "Secciones" (Servicios, About, proyecto) */
/* --sb / --sa: espacio del diseño antes de la sección y, en la última, hasta el pie (px a 1460). */
.sx { margin-top: var(--sb, 0px); }
.sx:last-child { margin-bottom: var(--sa, 0px); }
.sx > section { margin-top: 0; }
.has-sections .site-footer, .post-type-archive-proyecto .site-footer, .tax-tipo_proyecto .site-footer { margin-top: 0; }
.rich p + p, .rich ul + p, .rich ol + p { margin-top: 1.5em; }
.rich ul, .rich ol { margin: 0; padding-left: 1.6em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.entry { margin-top: 80px; margin-bottom: 80px; min-height: 30vh; }
.entry__title { font-size: 40px; font-weight: 700; line-height: 1.5; }
.entry__content { margin-top: 16px; }

/* título y texto en columna (Frame 137 #176:230, #187:373, #156:843…) */
.txt { --l: 143; --r: 542; }
.txt--right { --l: 543; --r: 142; }
.txt--right-narrow { --l: 643; --r: 142; }
.txt__title { font-weight: 700; font-size: 40px; line-height: 1.5; }
.txt--t44 .txt__title { font-size: 44px; }
.txt--t32 .txt__title { font-size: 32px; }
.txt__text { margin-top: 14px; }
.txt--t32 .txt__text { margin-top: 16px; }
.txt--x12 .txt__text { font-size: 12px; }
.txt__inner > .txt__text:first-child { margin-top: 0; }

/* banner de caso en las páginas: x 144 (en el Home 151) y panel flotante (Servicios #176:263) */
.sx .case-banner__box {
  margin-left: max(16px, calc(144 * min(100vw, 1460px) / 1460 + (100vw - min(100vw, 1460px)) / 2));
}
@media (min-width: 1460px) { .sx .case-banner__box { transform: none; } }
.case-banner--floating .case-banner__panel {
  position: absolute; right: 24px; bottom: 44px; width: 583px; max-width: calc(100% - 48px);
  padding: 24px 44px; gap: 18px; border-radius: 32px; background: rgba(35, 22, 35, .75); justify-content: flex-start;
}
.case-banner--floating .case-banner__title { font-size: 32px; }
.case-banner--floating .btn { align-self: flex-end; }

/* grillas de tarjetas: variantes de la banda del ecosistema (template-parts/components/card-grid.php) */
.eco--btn-outline .eco-card .btn, .eco--btn-filled .eco-card .btn { margin-top: 18px; }
.eco--light { background: none; color: #000; }
.eco--light .eco__inner { --l: 144; --r: 143; padding-top: 0; padding-bottom: 0; }
.eco--light .heading--eco .heading__title { font-family: var(--font-poppins); font-size: 32px; line-height: 1.5; }
.eco--light .eco__grid { margin-top: 41px; }
.eco--light .eco__inner > .eco__grid:first-child { margin-top: 0; }
.eco--light.eco--btn-filled .eco__inner { --l: 139; --r: 138; }
.eco--btn-filled .eco__grid { grid-template-columns: repeat(3, minmax(0, 375px)); column-gap: 29px; align-items: start; }
.eco--btn-filled .eco-card { gap: 24px; }
.eco--btn-filled .eco-card .btn { margin-top: 12px; }
.eco--feature .eco__inner { --l: 149; --r: 158; }
.eco--feature .eco__grid { grid-template-columns: minmax(0, 749px) minmax(0, 375px); column-gap: 29px; align-items: start; }
.eco--feature .eco-card:first-child .eco-card__img { aspect-ratio: 749 / 397; }
.eco--feature .eco-card:first-child .eco-card__body { max-width: 734px; }

/* imágenes en fila (Rectangle 85/86/87 de Servicios; 76/78–82 del proyecto) */
.imgs { --l: 143; --r: 144; display: flex; gap: 24px; }
.imgs__item { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: var(--w) / var(--h); border-radius: var(--rad); overflow: hidden; }
.imgs__item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--shade, 0)); }
.imgs__img { width: 100%; height: 100%; object-fit: cover; }

/* video: miniatura + sello de YouTube (About #187:344, proyecto #187:426) */
.video { --l: 143; --r: 142; display: flex; align-items: flex-start; gap: 25px; }
.video__media { position: relative; display: block; flex: 0 1 675px; aspect-ratio: 675 / 399.1; overflow: hidden; background: #000; }
.video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.video__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; transition: transform .2s; }
.video__play .icon { width: 101.7px; height: 81.4px; }
a.video__media:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__badge {
  position: absolute; z-index: 1; left: 0; bottom: 32px; height: 27.8px; padding: 0 9.8px; display: flex; align-items: center; gap: 4.8px;
  background: rgba(6, 6, 6, .75); color: #fff; font-family: var(--font-inter); font-size: 14.65px; line-height: 1.21; white-space: nowrap;
}
.video__badge .icon { width: 70px; height: 15.75px; color: var(--color-placeholder); }
.video__body { flex: 0 1 475px; padding-top: 31px; }
.video__title { font-weight: 700; font-size: 44px; line-height: 1.5; }
.video__text { margin-top: 14px; }
.video--solo { justify-content: center; }
.video--solo .video__media { flex-basis: 838px; aspect-ratio: 838 / 495.5; }
.video--solo .video__play .icon { width: 126.3px; height: 101px; }
.video--solo .video__badge { bottom: 40px; height: 34.1px; padding: 0 12.1px; gap: 6px; font-size: 18.18px; }

/* imagen + bloques (About "Nuestra visión" #187:394; proyecto: mockup + bloques con ícono #219:1865) */
.blocks { max-width: 1460px; margin-inline: auto; display: flex; align-items: center; }
.blocks__list { display: flex; flex-direction: column; }
.blocks--about .blocks__img { flex: 0 1 924px; width: 924px; min-width: 0; aspect-ratio: 924 / 594; height: auto; object-fit: cover; border-radius: 20px; }
.blocks--about .blocks__list { flex: 0 1 362px; gap: 24px; margin: 0 clamp(16px, calc(144 * 100vw / 1460), 144px) 0 30px; color: var(--color-c-040404); }
.blocks--about .blocks__title { font-weight: 700; font-size: 32px; line-height: 1.5; }
.blocks--about .blocks__text { margin-top: 12px; }
.blocks--device { align-items: flex-start; }
.blocks--device .blocks__img { flex: 0 1 615px; width: 615px; min-width: 0; aspect-ratio: 615 / 731; height: auto; object-fit: contain; margin-left: 3px; }
.blocks--device .blocks__list { flex: 0 1 675px; gap: 4px; margin: 23px clamp(16px, calc(142 * 100vw / 1460), 142px) 0 25px; }
.blocks--device .blocks__item { padding: 12px 24px; }
.blocks__icon { display: block; width: 60px; height: 60px; }
.blocks--device .blocks__title { margin-top: 8px; font-weight: 700; font-size: 24px; line-height: 1.5; }
.blocks--device .blocks__text { margin-top: 8px; color: var(--color-c-484747); }

/* equipo (Frame 150 #187:381) */
.team { --l: 143; --r: 144; }
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 375px)); gap: 24px; }
.team__photo { width: 100%; aspect-ratio: 375 / 427; height: auto; object-fit: cover; background: var(--color-c-575555); }
.team__name { margin-top: 10px; font-weight: 700; font-size: 28px; line-height: 1.5; }
.team__role { margin-top: 10px; font-size: 18px; line-height: 1.5; }

/* contacto sin texto bajo el título (Servicios, About) */
.contact--no-text .contact__form { margin-top: 52px; }

/* ------------------------------------------------------------------ listado de proyectos (#159:868) */
.plist { --l: 141; --r: 144; margin-top: 76px; margin-bottom: 91px; }
.plist__title { max-width: 777px; margin-left: 2px; font-weight: 700; font-size: 44px; line-height: 1.5; }
.plist__tabs { margin-top: 34px; }
.plist__tabs ul { display: flex; flex-wrap: wrap; gap: 0 14px; }
.plist__tab { position: relative; display: block; height: 36px; font-size: 16px; line-height: 1.5; color: var(--color-c-606060); text-decoration: none; }
.plist__tab:hover { color: var(--color-surface-dark); }
.plist__tab.is-active { font-weight: 700; color: var(--color-surface-dark); }
.plist__tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; top: 25px; height: 2px; background: var(--color-surface-dark); }
.plist__rows { margin-top: 32px; display: flex; flex-direction: column; gap: 59px; }
.plist__row { display: grid; gap: 25px; align-items: start; }
.plist__row--a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plist__row--c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plist__empty { margin-top: 32px; }
.pcard__media { display: block; }
.pcard__img { width: 100%; height: auto; object-fit: cover; border-radius: 20px; aspect-ratio: 375 / 247; }
.pcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; }
.pcard__title { font-weight: 700; font-size: 24px; line-height: 1.5; }
.pcard--big .pcard__img { aspect-ratio: 575 / 461; border-radius: 37px; }
.pcard--big .pcard__body { margin-top: 35px; max-width: 562px; color: var(--color-c-040404); }
.pcard--big .pcard__title, .pcard--wide .pcard__title, .pcard--wide-rev .pcard__title { font-size: 32px; }
.pcard--wide, .pcard--wide-rev { display: grid; grid-template-columns: minmax(0, 785fr) minmax(0, 362fr); gap: 30px; align-items: center; color: var(--color-c-040404); }
.pcard--wide-rev { grid-template-columns: minmax(0, 362fr) minmax(0, 785fr); }
.pcard--wide-rev .pcard__media { order: 2; }
.pcard--wide .pcard__img, .pcard--wide-rev .pcard__img { aspect-ratio: 785 / 524; }
.pcard--wide .pcard__body, .pcard--wide-rev .pcard__body { margin-top: 0; }
.pcard .btn { margin-top: 0; }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1100px) {
  .problem, .contact { flex-direction: column; align-items: stretch; }
  .problem__mosaic { flex: none; width: 100%; max-width: 575px; }
  .problem__body, .contact__body { flex: none; }
  .contact__img { flex: none; width: 100%; max-width: 575px; }
  .tabs__panel { padding-left: 0; }
  /* el botón no sale de su panel (si no, se vería en el panel vecino del carrusel) */
  .tabs .btn { height: auto; min-height: 42px; padding-block: 8px; max-width: 100%; white-space: normal; }
  .eco__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature--img-right { flex-direction: column; }
  .feature__img { flex: none; width: 100%; max-width: none; aspect-ratio: 710 / 520; }
  .feature__body, .feature--img-left .feature__body, .feature--img-right .feature__body { padding: 32px 24px 0; margin: 0; }
  .site-footer__inner { flex-direction: column; gap: 40px; }
  .site-footer__brand { flex: none; }
  .txt--right, .txt--right-narrow { --l: 143; --r: 142; }
  .video, .blocks, .blocks--device { flex-direction: column; align-items: stretch; }
  .video__media, .video--solo .video__media { flex: none; width: 100%; }
  .video__body { flex: none; padding-top: 0; }
  .blocks { gap: 32px; }
  .blocks--about .blocks__img, .blocks--device .blocks__img { flex: none; width: auto; margin: 0 clamp(16px, calc(143 * 100vw / 1460), 143px); }
  .blocks--device .blocks__img { max-width: 615px; }
  .blocks--about .blocks__list, .blocks--device .blocks__list { flex: none; margin: 0 clamp(16px, calc(143 * 100vw / 1460), 143px); }
  .eco--btn-filled .eco__grid, .eco--feature .eco__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco--feature .eco-card:first-child { grid-column: 1 / -1; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard--wide, .pcard--wide-rev { grid-template-columns: minmax(0, 1fr); }
  .pcard--wide-rev .pcard__media { order: 0; }
  .plist__row--c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ celular */
@media (max-width: 768px) {
  .sec { padding-left: 16px; padding-right: 16px; }
  .services__track, .feed__track { padding-left: 16px; scroll-padding-left: 16px; }
  .site-header__inner { padding: 16px; position: relative; }
  .site-header__toggle {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .burger, .burger::before, .burger::after, .burger span { display: block; width: 22px; height: 2px; background: #000; border-radius: 2px; }
  .burger { position: relative; background: transparent; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; transition: transform .2s; }
  .burger::before { top: -7px; }
  .burger::after { top: 7px; }
  .site-header__toggle[aria-expanded="true"] .burger span { opacity: 0; }
  .site-header__toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
  .site-header__toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; box-shadow: var(--shadow-1); }
  .site-nav.is-open { display: block; }
  .site-nav__menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; font-size: 16px; }
  .site-nav__menu a { padding: 12px 0; }
  .site-nav__menu .menu-cta { margin: 8px 0 0; }
  .site-nav__menu .menu-cta > a { justify-content: center; height: 40px; font-size: 14px; }

  .hero { min-height: 560px; }
  .hero__inner { padding: 0 16px 48px; align-self: flex-end; }
  .hero__title { font-size: 30px; }
  .heading__title, .clients__title, .tabs__title, .feed__title, .feature__title, .contact__title { font-size: 28px; }
  .problem__title { font-size: 24px; }
  .case-banner__title { font-size: 26px; }
  .problem { margin-top: 56px; }
  .case-banner { margin-top: 56px; }
  .case-banner + .services, .tabs, .eco, .feature, .contact, .site-footer { margin-top: 56px; }
  .feature + .feature { margin-top: 40px; }
  .tabs + .case-banner { margin-top: 56px; }
  .case-banner__box { margin-inline: 16px; min-height: 480px; }
  .case-banner__panel { width: 100%; padding: 32px 20px; justify-content: flex-end; }
  .services__track { margin-top: 32px; gap: 16px; }
  .svc-card { width: min(300px, calc(100vw - 48px)); height: 400px; }
  .tabs__progress { margin-left: 0; margin-right: 0; }
  .tabs__list { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .tabs__tab { flex: none; font-size: 16px; max-width: 180px; }
  .tabs__viewport { margin-top: 32px; }
  .tabs__panel { flex-direction: column-reverse; align-items: stretch; justify-content: flex-end; }
  .tabs__img, .tabs__body { flex: none; }
  .tabs__img { width: 100%; }
  .eco__inner { padding-top: 56px; padding-bottom: 64px; }
  .eco__grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; gap: 40px; }
  .feed { margin-top: 56px; }
  .feed__title { margin-left: 0; }
  .feed__track { gap: 16px; }
  .site-footer__nav { flex-direction: column; padding-top: 0; }
  .site-footer__columns { flex-wrap: wrap; }
  .site-footer__brand { gap: 20px; }
  .site-footer__logo { width: min(315px, 100%); height: auto; aspect-ratio: 315 / 98; }
  .sx { margin-top: min(var(--sb, 0px), 56px); }
  .sx:last-child { margin-bottom: min(var(--sa, 0px), 56px); }
  .txt__title, .txt--t44 .txt__title, .video__title, .plist__title { font-size: 28px; }
  .txt--t32 .txt__title, .blocks--about .blocks__title, .eco--light .heading--eco .heading__title { font-size: 24px; }
  .imgs { flex-direction: column; gap: 16px; }
  .imgs__item { flex: none; }
  .imgs--1 .imgs__item { aspect-ratio: 4 / 3; }
  .case-banner--floating .case-banner__panel { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 20px; }
  .case-banner--floating .case-banner__title { font-size: 24px; }
  .video__play .icon, .video--solo .video__play .icon { width: 72px; height: 58px; }
  .video__badge, .video--solo .video__badge { bottom: 16px; height: 27.8px; padding: 0 9.8px; gap: 4.8px; font-size: 14px; }
  .blocks--device .blocks__item { padding: 12px 0; }
  .blocks--about .blocks__img, .blocks--device .blocks__img, .blocks--about .blocks__list, .blocks--device .blocks__list { margin-left: 16px; margin-right: 16px; }
  .sx .case-banner__box { margin-left: 16px; }
  .eco--btn-filled .eco__grid, .eco--feature .eco__grid, .team__grid, .plist__row--a, .plist__row--c { grid-template-columns: minmax(0, 1fr); }
  .eco--feature .eco-card:first-child .eco-card__img { aspect-ratio: 375 / 247; }
  .eco--btn-filled .eco__grid { row-gap: 40px; }
  .plist { margin-top: 40px; margin-bottom: 56px; }
  .plist__rows { gap: 40px; }
  .pcard--big .pcard__img { border-radius: 20px; aspect-ratio: 375 / 300; }
  .pcard--big .pcard__body { margin-top: 24px; }
  .pcard--big .pcard__title, .pcard--wide .pcard__title, .pcard--wide-rev .pcard__title { font-size: 24px; }
  .pcard--wide, .pcard--wide-rev { gap: 24px; }
}
