html, body { margin: 0; padding: 0; }
html { width: 100%; min-height: 100%; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { width: 100%; min-height: 100vh; overflow-x: hidden; }
main { width: 100%; margin-inline: auto; }
main > :first-child { margin-top: 0 !important; }
main > :last-child { margin-bottom: 0 !important; }
section[id] { scroll-margin-top: 80px; }
#product-container, #spinoffs-carousel, #testimonios-carousel { overscroll-behavior-x: contain; }

#product-container > div, #spinoffs-carousel > div, #testimonios-carousel > div { width: 90%; }

#testimonios-carousel > div { justify-content: flex-start; }

#product-container .items-center.justify-between, #spinoffs-carousel .items-center.justify-between { align-items: baseline; gap: 0.75rem; }
#product-container .items-center.justify-between > span:last-child, #spinoffs-carousel .items-center.justify-between > span:last-child { white-space: nowrap; }

:root { --brand-red: #ea1d24; --brand-red-hover: #cf151b; }
.bg-primary, .hover\:bg-primary:hover, .hover\:bg-primary-container:hover { background-color: #ea1d24 !important; }
.text-primary, .hover\:text-primary:hover { color: #ea1d24 !important; }
.border-primary { border-color: #ea1d24 !important; }
.bg-primary\/10 { background-color: rgba(234, 29, 36, 0.1) !important; color: #ea1d24 !important; }

#client-track > div { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; }
#client-track > div > div { flex: 0 0 calc((100% - 0.75rem) / 2); }
@media (min-width: 640px) { #client-track > div > div { flex-basis: calc((100% - 3 * 0.75rem) / 4); } }
@media (min-width: 1280px) { #client-track > div > div { flex-basis: calc((100% - 7 * 0.75rem) / 8); } }
#client-track > div > div { min-width: 0; overflow: hidden; text-align: center; }
#client-track > div > div > .flex { flex-wrap: wrap; justify-content: center; row-gap: 0.25rem; }

.img-preliminar::after { content: "PRELIMINAR"; position: absolute; top: 10px; right: 10px; padding: 5px 8px; background: rgba(0, 0, 0, 0.7); color: #fff; font: 700 10px/1 'JetBrains Mono', monospace; letter-spacing: 0.12em; pointer-events: none; }

a:focus-visible, button:focus-visible { outline: 2px solid #ea1d24; outline-offset: 2px; }

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

.ct-inner { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

@media (min-width: 768px) { .ct-inner { padding: 0 3rem; } }
.ct-contacto { background: #0c0f13; color: #fff; padding: 96px 0; }
.ct-kicker { display: inline-block; font: 700 12px/1 'JetBrains Mono', monospace; letter-spacing: .16em; color: #ea1d24; text-transform: uppercase; }
.ct-h2 { margin: 14px 0 0; font: 700 clamp(30px, 4vw, 48px)/1.05 'Space Grotesk', sans-serif; letter-spacing: -0.02em; color: #fff; }
.ct-texto { margin: 14px 0 0; font: 400 16px/1.65 'Inter', sans-serif; color: rgba(255,255,255,.74); max-width: 540px; }
.ct-datos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; font: 500 17px/1.4 'Inter', sans-serif; }
.ct-datos li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ct-datos a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); overflow-wrap: anywhere; }
.ct-datos a:hover { color: #ea1d24; border-color: #ea1d24; }
.ct-ico { width: 22px; height: 22px; fill: #ea1d24; flex: none; }
.ct-footer { background: #07090c; color: rgba(255,255,255,.7); font: 400 14px/1.6 'Inter', sans-serif; border-top: 1px solid rgba(255,255,255,.08); }
.ct-footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; }

@media (min-width: 1024px) { .ct-footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.ct-footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); }
.ct-footer p { margin: 14px 0 0; }
.ct-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ct-footer nav a { color: #fff; text-decoration: none; font-weight: 500; }
.ct-footer nav a:hover { color: #ea1d24; }
.ct-footer-legal { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.5); }
.ct-footer-legal a { color: inherit; text-decoration: none; }
.ct-footer-legal a:hover { color: #fff; }
#product-counter, #spinoffs-counter, #testimonios-counter { white-space: nowrap; }

#que-hacemos .lg\:h-\[480px\] { height: auto; }
@media (min-width: 1024px) { #que-hacemos .lg\:h-\[480px\] { height: 540px; } }
.pt-kicker { font: 700 12px/1 'JetBrains Mono', monospace; letter-spacing: .16em; color: #ea1d24; }
#que-hacemos .pt-title { font-size: clamp(32px, 3.7vw, 52px) !important; line-height: 1.0 !important; letter-spacing: -0.025em !important; }
#hero-slide-1 .pt-title, #hero-slide-2 .pt-title { font-size: clamp(28px, 3.1vw, 42px) !important; }
#que-hacemos .font-body-lg { font-size: 19px !important; }
#que-hacemos .lg\:col-span-5 .space-y-space-xs { max-width: 470px; }
.pt-btn2 { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1.5px solid #1a1c1e;
  color: #1a1c1e; font: 700 12px/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-decoration: none; transition: background .15s, color .15s; }
.pt-btn2:hover { background: #1a1c1e; color: #fff; }
#que-hacemos .pt-media { border-radius: 4px; }
#que-hacemos [id^="hero-dot-"] { position: relative; overflow: hidden; width: 48px !important; background: #e2e2e6 !important; }
#que-hacemos [id^="hero-dot-"].bg-primary::after { content: ""; position: absolute; inset: 0; background: #ea1d24; transform-origin: left; animation: pt-fill 7s linear forwards; }
@keyframes pt-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#que-hacemos .border-t.border-surface-container { border-top: 0 !important; }
@media (prefers-reduced-motion: reduce) { #que-hacemos [id^="hero-dot-"].bg-primary::after { animation: none; } }

#que-hacemos .lg\:h-\[480px\] { background: #f1f1f3; border-radius: 16px; }
#que-hacemos .hero-slide > .lg\:col-span-5 { padding: 32px 24px 8px; }
#que-hacemos .pt-media { border-radius: 0; }
@media (max-width: 1023.98px) {

  #que-hacemos .hero-slide { grid-template-rows: auto 1fr; }
  #que-hacemos .hero-slide .pt-media { height: 100%; min-height: 14rem; }
}
@media (min-width: 1024px) {

  #que-hacemos > div, .hdr-ancho, .ft-ancho .ct-inner { max-width: 1600px; }
  #que-hacemos .lg\:h-\[480px\] { height: auto; }
  #que-hacemos .hero-slide { column-gap: 0; }
  #que-hacemos .hero-slide > .lg\:col-span-5 { padding: 32px 16px 32px 48px; position: relative; z-index: 1; }

  #que-hacemos .hero-slide > .lg\:col-span-7 { position: relative; height: auto; }
  #que-hacemos .hero-slide > .lg\:col-span-7::before { content: ""; display: block; aspect-ratio: 16 / 9; }
  #que-hacemos .hero-slide .pt-media { position: absolute; inset: 0; height: 100%; }
  #que-hacemos .pt-media { clip-path: polygon(140px 0, 100% 0, 100% 100%, 0 100%); }
  #que-hacemos .pt-title { font-size: clamp(28px, 2.7vw, 46px) !important; }
  #hero-slide-1 .pt-title, #hero-slide-2 .pt-title { font-size: clamp(26px, 2.4vw, 40px) !important; }
}

#que-hacemos .hero-slide .lg\:col-span-5 a { box-sizing: border-box; height: 38px; padding-top: 0; padding-bottom: 0; }

#hero-slide-1 .pt-ampliar { display: block; width: 100%; height: 100%; }
@media (min-width: 1024px) {
  #que-hacemos #hero-slide-1 .pt-media { clip-path: none; }
  #hero-slide-1 .pt-ampliar { pointer-events: none; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {

  #que-hacemos .hero-slide > .lg\:col-span-5 { padding-left: 40px; }
  #que-hacemos .hero-slide .lg\:col-span-5 a { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 768px) { #spinoffs-carousel > div, #testimonios-carousel > div { min-width: 0; max-width: none; width: auto; flex: 0 0 calc((100% - 1.5rem) / 2); } }

@media (min-width: 1024px) { #testimonios-carousel > div { flex-basis: calc((100% - 2 * 1.5rem) / 3); } }

.testimonio-franja { aspect-ratio: 2 / 1; }

#quienes-somos h3.truncate, #quienes-somos p.truncate { white-space: normal; overflow: visible; text-overflow: clip; }
@media (min-width: 1024px) { header nav.xl\:flex { display: flex; } #mobile-nav-toggle, #mobile-nav { display: none !important; } }
