/* ==========================================================
   BigoteLab — hoja de estilos (versión HTML estática)
   ========================================================== */

:root {
  --bg: #00ff99;
  --fg: #09090b;
  --accent: #00ff99;
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "Outfit", Arial, Helvetica, sans-serif;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset mínimo ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
img, video, iframe {
  display: block;
  max-width: 100%;
}
iframe {
  border: 0;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mono {
  font-family: var(--font-mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Contenedor ---------- */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; padding-inline: 48px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* ---------- Animaciones de entrada (al hacer scroll) ---------- */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--delay, 0s);
}
.reveal.from-bottom { transform: translateY(30px); }
.reveal.from-left   { transform: translateX(-50px); }
.reveal.from-right  { transform: translateX(50px); }
.reveal.from-scale  { transform: scale(0.9); }
.reveal.from-small  { transform: translateY(20px); }
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s, border-color 0.3s;
  animation: header-in 0.6s ease-out both;
}
.site-header.scrolled {
  background: #00ff99;
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand img {
  width: auto;
  height: 54px;
  transition: transform 0.3s;
}
.brand:hover img { transform: scale(1.05); }
@media (min-width: 768px) {
  .brand img { height: 68px; }
}

/* Logo: blanco sobre fondos oscuros, negro sobre fondos claros */
.logo-light { filter: brightness(0) invert(1); }
.logo-dark  { filter: brightness(0); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-desktop a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}
.nav-desktop a:hover { color: #fff; }
.site-header.scrolled .nav-desktop a { color: rgba(0, 0, 0, 0.7); }
.site-header.scrolled .nav-desktop a:hover { color: #000; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.menu-toggle {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.menu-toggle svg { width: 24px; height: 24px; }
.site-header.scrolled .menu-toggle,
.site-header.menu-open .menu-toggle { color: #000; }
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  background: #00ff99;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.site-header.menu-open .mobile-menu { display: block; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}
.mobile-menu a {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.7);
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: #000; }
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Indicador REC ---------- */
.rec {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rec-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.8);
  animation: rec-blink 1.5s ease-in-out infinite;
}
.rec-text {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.rec-line {
  width: 1px;
  height: 128px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.rec-time {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  transform: translateY(32px) rotate(90deg);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: hero-in 1.2s 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}
.hero-kicker {
  display: block;
  font-size: 14px;
  color: #9ca3af;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  max-width: 1000px;
}
.hero h1 .grad {
  display: inline-block;
  background: linear-gradient(to right, #e5e5e5, #525252);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 18px;
  font-weight: 300;
  color: #d4d4d4;
  line-height: 1.6;
  max-width: 672px;
  margin: 0 auto 48px;
}
.hero p br.md-only { display: none; }
.btn-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-hero:hover {
  background: #e5e5e5;
  transform: scale(1.05);
}
.btn-hero span {
  margin-right: 8px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-hero svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
.btn-hero:hover svg { transform: translateX(4px); }

@media (min-width: 768px) {
  .hero h1 { font-size: 72px; }
  .hero p br.md-only { display: block; }
  .hero-kicker { font-size: 16px; }
  .hero p { font-size: 20px; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 96px; }
}

/* ---------- Sección "Quiénes somos" ---------- */
.section-pad { padding: 96px 0; }
@media (min-width: 768px) { .section-pad { padding: 160px 0; } }

.about {
  position: relative;
  z-index: 10;
  overflow: hidden;
  background: var(--bg);
}
.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
@media (min-width: 768px) {
  .about-grid { flex-direction: row; gap: 96px; }
}
.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about h2 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #000;
  margin-bottom: 16px;
}
.about h2 span { opacity: 0.3; }
.about-text p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  max-width: 576px;
}
.about-bar {
  padding-top: 16px;
}
.about-bar-track {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.about-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 1s ease 0.5s;
}
.about-bar.in .about-bar-fill { transform: translateX(0); }

.about-media {
  flex: 1;
  position: relative;
  width: 100%;
}
.corner {
  position: absolute;
  width: 128px;
  height: 128px;
  border-color: rgba(0, 255, 153, 0.3);
  pointer-events: none;
}
.corner-tl {
  top: -32px;
  left: -32px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-top-left-radius: 24px;
}
.corner-br {
  bottom: -32px;
  right: -32px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-bottom-right-radius: 24px;
}
.about-frame {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.1);
  animation: breathe 2.5s ease-in-out infinite;
  will-change: transform;
}
.about-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s;
}
.about-frame:hover img { transform: scale(1.1); }
.about-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 153, 0.1);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.about-frame:hover::after { opacity: 1; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* ---------- Realizamos (servicios) ---------- */
.services {
  position: relative;
  z-index: 10;
  overflow: hidden;
  background: #fff;
  padding: 96px 0;
}
@media (min-width: 768px) { .services { padding: 128px 0; } }

.services-head {
  max-width: 896px;
  margin-bottom: 80px;
}
.services h2 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #000;
  margin-bottom: 32px;
}
.services-head p.lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: #000;
}
.services-head p.sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 16px;
}
@media (min-width: 768px) {
  .services h2 { font-size: 96px; }
  .services-head p.lead { font-size: 24px; }
  .services-head p.sub { font-size: 20px; }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
.service-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.5s, opacity 0.8s ease-out, transform 0.8s ease-out;
}
.service-card:hover { background: #fafafa; }
.service-card:focus-visible { outline: 2px solid #000; outline-offset: -2px; }
@media (min-width: 768px) { .service-card { padding: 48px; } }

.service-num {
  position: absolute;
  right: -16px;
  top: -32px;
  font-size: 144px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.02);
  transition: color 0.5s;
  pointer-events: none;
  user-select: none;
}
.service-card:hover .service-num { color: rgba(0, 0, 0, 0.04); }

.service-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  padding-right: 48px;
  transition: transform 0.5s;
}
.service-card:hover .service-title { transform: translateX(8px); }
@media (min-width: 768px) { .service-title { font-size: 24px; } }

.service-foot {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-foot .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.5s;
}
.service-card:hover .service-foot .label { color: var(--accent); }
.service-foot .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s;
}
.service-card:hover .circle {
  background: #000;
  border-color: #000;
}
.service-foot svg {
  width: 20px;
  height: 20px;
  color: #000;
  transition: color 0.5s;
}
.service-card:hover .service-foot svg { color: #fff; }

/* ---------- Portafolio ---------- */
.work {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 48px 0;
}
@media (min-width: 768px) { .work { padding: 96px 0; } }

.work h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #000;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .work h3 { font-size: 48px; } }

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 300px;
  gap: 24px;
}
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 32px;
  }
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #171717;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.card .embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.card .embed iframe {
  width: 100%;
  height: 100%;
}
.card .shade {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  transition: opacity 0.5s;
  pointer-events: none;
}
.card:hover .shade { opacity: 0.4; }
.card .caption {
  position: absolute;
  left: 32px;
  bottom: 32px;
  transition: transform 0.5s;
  pointer-events: none;
}
.card:hover .caption { transform: translateY(-8px); }
.card .kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.card h3 {
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.card-1 { grid-column: span 1; }
.card-2 { grid-column: span 1; }
.card-3 { grid-column: span 1; }
.card-4 { grid-column: span 1; }
.card-1 .shade { background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.2), transparent); }
.card-2 .shade { background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.3), transparent); }
.card-3 .shade,
.card-4 .shade { background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.1), transparent); }
.card-3:hover .shade,
.card-4:hover .shade { opacity: 0.3; }
.card-1 h3 { font-size: 30px; }
.card-2 h3 { font-size: 24px; font-weight: 700; }
.card-3 h3, .card-4 h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
@media (min-width: 768px) {
  .card-1 h3 { font-size: 48px; }
  .card-2 h3 { font-size: 30px; }
  .card-3 h3, .card-4 h3 { font-size: 24px; }
  .card-1 { grid-column: 1 / span 8; }
  .card-2 { grid-column: 9 / span 4; grid-row: 1 / span 2; }
  .card-3 { grid-column: 1 / span 4; }
  .card-4 { grid-column: 5 / span 4; }
  .card-2 .caption { bottom: 40px; }
}
.card-2 .embed iframe { opacity: 0.7; transition: opacity 0.7s; }
.card-2:hover .embed iframe { opacity: 1; }
.card-2 .caption h3 { line-height: 1.2; }

/* ---------- Banda de servicios en movimiento ---------- */
.marquee-section {
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
@media (min-width: 768px) { .marquee-section { padding: 128px 0; } }

.marquee-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.marquee-bg .embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350%;
  height: 350%;
  transform: translate(-50%, -50%);
}
.marquee-bg iframe {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}
.marquee-bg .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000, rgba(0,0,0,.1), #000);
}
.marquee-bg .tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}
.marquee-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: rgba(0, 255, 153, 0.05);
  filter: blur(120px);
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
}
.marquee-wrap {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.marquee-row {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
@media (min-width: 768px) {
  .marquee-group { gap: 96px; padding-right: 96px; }
}
.marquee-track.to-left  { animation: marquee-left 30s linear infinite; }
.marquee-track.to-right { animation: marquee-right 40s linear infinite; }

.marquee-item {
  position: relative;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.5s;
  cursor: default;
}
.marquee-item:hover { color: var(--accent); }
.marquee-item .dot {
  position: absolute;
  top: -8px;
  right: -16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.marquee-item:hover .dot {
  opacity: 1;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.marquee-outline {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .marquee-item, .marquee-outline { font-size: 72px; }
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---------- Instagram ---------- */
.insta {
  background: #fff;
  padding: 96px 0;
  overflow: hidden;
}
.insta-head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .insta-head { flex-direction: row; align-items: flex-end; }
}
.insta h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
}
.insta h2 span { color: #e1306c; }
@media (min-width: 768px) { .insta h2 { font-size: 60px; } }
.insta-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.insta-handle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  transition: transform 0.3s;
}
.btn-dark:hover { transform: scale(1.05); }
.btn-dark span {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-dark svg { width: 18px; height: 18px; }

.insta-frame {
  position: relative;
  min-height: 650px;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}


/* ---------- Clientes (órbita) ---------- */
.clients {
  position: relative;
  overflow: hidden;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 96px 0;
}
@media (min-width: 768px) {
  .clients { min-height: 800px; padding: 240px 0; }
}
.clients-dots {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}
.clients-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ring-1 {
  width: 250px;
  height: 250px;
  animation: pulse 2s ease-in-out infinite;
}
.ring-2 {
  width: 180px;
  height: 180px;
  border-color: rgba(0, 255, 153, 0.05);
}
@media (min-width: 768px) {
  .ring-1 { width: 600px; height: 600px; }
  .ring-2 { width: 400px; height: 400px; }
}

.orbit-wrap {
  --radius: 120px;
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 896px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .orbit-wrap { --radius: 320px; } }
@media (max-width: 380px) { .orbit-wrap { --radius: 100px; } }

.hub {
  position: relative;
  z-index: 30;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 16px;
  border-radius: 999px;
}
.hub-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 8px;
  animation: pulse 2s ease-in-out infinite;
}
.hub h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
@media (min-width: 768px) { .hub h2 { font-size: 72px; } }
.hub-ping {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.hub-ping span {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.8);
}
.hub-ping span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 50s linear infinite;
}
.orbit-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-label {
  position: relative;
  display: block;
  animation: spin-rev 50s linear infinite;
}
.orbit-label span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  transition: color 0.3s;
}
.orbit-label:hover span { color: var(--accent); }
.orbit-label::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}
.orbit-label:hover::before {
  background: var(--accent);
  transform: translateY(-50%) scale(1.5);
}
@media (min-width: 768px) {
  .orbit-label span { font-size: 18px; }
}
.sync {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.2;
}
.sync i { display: block; width: 32px; height: 1px; background: #fff; }
.sync p {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
@media (min-width: 768px) { .sync { display: none; } }

@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 64px 0 32px;
  color: var(--fg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }

.footer-brand { display: flex; flex-direction: column; gap: 32px; }
.footer-brand img { height: 50px; width: auto; }
.footer-brand p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.5);
  max-width: 240px;
}
.btn-brochure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.05);
  font-weight: 700;
  color: #000;
  width: max-content;
  transition: all 0.5s;
}
.btn-brochure:hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
}
.btn-brochure span {
  margin-right: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.btn-brochure svg { width: 16px; height: 16px; }

.footer-col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  opacity: 0.4;
  margin-bottom: 32px;
}
.footer-block + .footer-block { margin-top: 24px; }
.footer-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  word-break: break-all;
  transition: color 0.3s;
}
.footer-link:hover { color: #000; }
.phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-row + .phone-row { margin-top: 16px; }
.wa-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}
.wa-btn:hover {
  color: #25d366;
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.05);
}
.wa-btn svg { width: 14px; height: 14px; }
.socials {
  display: flex;
  gap: 16px;
  padding-top: 8px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}
.socials a:hover {
  color: #fff;
  background: #000;
  border-color: #000;
}
.socials svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.2);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}
.footer-legal {
  display: flex;
  gap: 32px;
}
.footer-legal button {
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  font-size: inherit;
  transition: color 0.3s;
}
.footer-legal button:hover { color: #000; }

/* ---------- Modales ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in 0.3s ease-out;
}
.modal-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 672px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.3s ease-out;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fafafa;
}
.modal-head h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #000;
}
.modal-x {
  padding: 8px;
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}
.modal-x:hover { background: rgba(0,0,0,.05); color: #000; }
.modal-x svg { width: 20px; height: 20px; display: block; }
.modal-body {
  padding: 32px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}
.modal-body > * + * { margin-top: 16px; }
.modal-body h4 {
  font-weight: 700;
  color: #000;
  padding-top: 16px;
}
.modal-body .lead-text {
  font-size: 18px;
  font-weight: 300;
  color: #000;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .modal-body .lead-text { font-size: 20px; }
}
.modal-divider {
  margin-top: 24px !important;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--accent);
}
.modal-divider i { display: block; width: 48px; height: 1px; background: currentColor; }
.modal-divider span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.modal-close {
  padding: 8px 24px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.3s;
}
.modal-close:hover { background: #262626; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 767px) {
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ---------- Miniaturas de YouTube (se muestran de inmediato) ---------- */
.embed .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.embed iframe {
  position: relative;
  z-index: 1;
}
.embed.is-live .poster {
  opacity: 0;
}
.marquee-bg .poster {
  opacity: 0.6;
}
.marquee-bg .embed.is-live .poster {
  opacity: 0;
}

/* ---------- Keyframes ---------- */
@keyframes header-in {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0; transform: scale(1.2); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Rendimiento: capas propias y pausa fuera de pantalla ---------- */
.marquee-track,
.orbit {
  will-change: transform;
}
.idle,
.idle * {
  animation-play-state: paused !important;
}
.idle .hub-ping span::after {
  animation-play-state: paused !important;
}

/* ---------- Respeto a preferencias de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
