/* ═══════════════════════════════════════════════════════════════════════
   STYLE.CSS — Marty McFly AI Agency
   Hoja de estilos principal del sitio web

   ESTRUCTURA DEL ARCHIVO:
   ┌─────────────────────────────────────────────────────────────────────┐
   │  PARTE 1: TAILWIND CSS BASE (generado automáticamente)            │
   │    - Variables CSS custom properties de Tailwind                   │
   │    - Reset / Normalize (box-sizing, tipografía base, etc.)        │
   │    - Clases utilitarias (layout, spacing, color, tipografía...)   │
   │    - Media queries responsive (sm, md, lg)                        │
   │                                                                    │
   │  PARTE 2: CUSTOM — Marty McFly AI Agency                          │
   │    1. Variables globales y resets                                   │
   │    2. Utilidades (logo, mesh-bg, float, glow, delays)             │
   │    3. HEADER (topbar, mainnav, burger, mobile overlay)            │
   │    4. HERO (overlays, CTAs desktop/mobile, sound button)          │
   │    5. CONTACTO (título y formulario)                              │
   │    6. FOOTER (CTA, marquee, info row, bottom bar)                 │
   │    7. CHAT MODAL (modal flotante arrastrable)                      │
   │    8. ANIMACIONES PREMIUM (cursor, scroll bar, noise, reveals)    │
   └─────────────────────────────────────────────────────────────────────┘
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   PARTE 1: TAILWIND CSS v3.4.19 — Clases generadas automáticamente
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Variables CSS de Tailwind (custom properties) ──────────────────
   Estas variables controlan transformaciones, sombras, filtros, etc.
   Se aplican a todos los elementos y pseudo-elementos (:before/:after)
   ──────────────────────────────────────────────────────────────────── */
*,
:after,
:before {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, .5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

/* Variables para elementos ::backdrop (modales, diálogos nativos) */
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, .5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

/* ─── Reset / Normalize ──────────────────────────────────────────────
   Tailwind CSS v3.4.19 — Reset global de estilos del navegador
   Establece box-sizing: border-box y elimina bordes por defecto
   ──────────────────────────────────────────────────────────────────── */
*,
:after,
:before {
  box-sizing: border-box;  /* El padding y border se incluyen en el ancho/alto total */
  border: 0 solid #e5e7eb  /* Borde de 0px con color gris claro por defecto */
}

/* Contenido vacío por defecto para pseudo-elementos */
:after,
:before {
  --tw-content: ""
}

/* Tipografía base del documento — fuente Inter como principal */
:host,
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent  /* Elimina el highlight azul en móvil al tocar */
}

/* Elimina el margen por defecto del body */
body {
  margin: 0;
  line-height: inherit
}

/* ─── Normalización de elementos HTML ─────────────────────────────────
   Elimina estilos inconsistentes entre navegadores para:
   - Encabezados (h1-h6), enlaces, listas, tablas
   - Formularios (input, textarea, button, select)
   - Media (img, video, svg, audio)
   - Tipografía (strong, code, small, sub, sup)
   ──────────────────────────────────────────────────────────────────── */
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted
}

/* Reset de encabezados — heredan tamaño y peso del padre */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit
}

/* Reset de enlaces — sin color ni subrayado propio */
a {
  color: inherit;
  text-decoration: inherit
}

b,
strong {
  font-weight: bolder
}

/* Fuente monoespaciada para código */
code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em
}

small {
  font-size: 80%
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sub {
  bottom: -.25em
}

sup {
  top: -.5em
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse
}

/* Reset de formularios — heredan la fuente del documento */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0
}

button,
select {
  text-transform: none
}

/* Botones — apariencia nativa y fondo transparente */
button,
input:where([type=button]),
input:where([type=reset]),
input:where([type=submit]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none
}

:-moz-focusring {
  outline: auto
}

:-moz-ui-invalid {
  box-shadow: none
}

progress {
  vertical-align: baseline
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px
}

::-webkit-search-decoration {
  -webkit-appearance: none
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit
}

summary {
  display: list-item
}

/* Elimina márgenes por defecto de elementos de bloque */
blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0
}

fieldset {
  margin: 0
}

fieldset,
legend {
  padding: 0
}

/* Listas sin viñetas, sin margen ni padding */
menu,
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0
}

dialog {
  padding: 0
}

textarea {
  resize: vertical
}

/* Placeholder con opacidad completa y color gris */
input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af
}

/* Cursor pointer en botones */
[role=button],
button {
  cursor: pointer
}

:disabled {
  cursor: default
}

/* Media como bloques — evita espacio fantasma debajo de imágenes */
audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
  display: block;
  vertical-align: middle
}

/* Imágenes y vídeos responsivos por defecto */
img,
video {
  max-width: 100%;
  height: auto
}

[hidden]:where(:not([hidden=until-found])) {
  display: none
}

/* ─── Estilos base del body ──────────────────────────────────────────
   - Fondo casi negro (#030303) — el color "brand-dark"
   - Texto gris neutro (#a3a3a3)
   - Fuente Inter con suavizado antialiased
   - Sin scroll horizontal
   ──────────────────────────────────────────────────────────────────── */
body {
  overflow-x: hidden;
  --tw-bg-opacity: 1;
  background-color: rgb(3 3 3/var(--tw-bg-opacity, 1));  /* #030303 — brand-dark */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  --tw-text-opacity: 1;
  color: rgb(163 163 163/var(--tw-text-opacity, 1));  /* Gris neutro para texto general */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

/* Selección de texto: fondo rojo (#dc2626) con texto blanco */
body ::-moz-selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

body ::selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

body::-moz-selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

body::selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

/* Encabezados h1-h6: fuente Outfit, peso bold, color blanco */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

/* ─── Componentes de botón ────────────────────────────────────────────
   .btn-primary  → Botón rojo principal con efecto brillo al hover
   .btn-secondary → Botón transparente con borde blanco (glass)
   ──────────────────────────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;  /* Pill / cápsula */
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1));  /* Rojo brand */
  padding: 1rem 2rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1));
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .5s
}

.btn-primary:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  --tw-shadow: 0 0 40px -5px rgba(220, 38, 38, .5);
  --tw-shadow-colored: 0 0 40px -5px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.btn-primary:before,
.btn-primary:hover {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

.btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  --tw-skew-x: 12deg;
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: transparent var(--tw-gradient-from-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: hsla(0, 0%, 100%, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), hsla(0, 0%, 100%, .2) var(--tw-gradient-via-position), var(--tw-gradient-to);
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .5s
}

.btn-primary:hover:before {
  left: 100%
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border-width: 1px;
  border-color: hsla(0, 0%, 100%, .1);
  background-color: hsla(0, 0%, 100%, .05);
  padding: 1rem 2rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1));
  --tw-backdrop-blur: blur(12px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .3s
}

.btn-secondary:hover {
  border-color: hsla(0, 0%, 100%, .2);
  background-color: hsla(0, 0%, 100%, .1)
}

/* ─── Glass card (efecto glassmorphism) ──────────────────────────────
   Tarjeta translúcida con blur de fondo, borde semi-transparente
   y efecto hover que sube la tarjeta con sombra roja
   Usada en: tarjetas de servicios (Bento Grid), sección contacto
   ──────────────────────────────────────────────────────────────────── */
.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: hsla(0, 0%, 100%, .05);
  background-color: hsla(0, 0%, 100%, .02);  /* Casi transparente */
  padding: 2rem;
  --tw-backdrop-blur: blur(24px);  /* Glassmorphism blur */
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .5s
}

.glass-card:hover {
  --tw-translate-y: -0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  border-color: rgba(220, 38, 38, .3);
  background-color: hsla(0, 0%, 100%, .04);
  --tw-shadow: 0 20px 40px -15px rgba(220, 38, 38, .1);
  --tw-shadow-colored: 0 20px 40px -15px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

/* ─── Accesibilidad: solo visible para lectores de pantalla ──────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0
}

/* ─── Utilidades de layout: posición, z-index, inset ─────────────── */
.pointer-events-none {
  pointer-events: none
}

.fixed {
  position: fixed
}

.absolute {
  position: absolute
}

.relative {
  position: relative
}

.-inset-10 {
  inset: -2.5rem
}

.-inset-20 {
  inset: -5rem
}

.inset-0 {
  inset: 0
}

.-bottom-32 {
  bottom: -8rem
}

.bottom-0 {
  bottom: 0
}

.bottom-10 {
  bottom: 2.5rem
}

.left-1\/2 {
  left: 50%
}

.left-1\/4 {
  left: 25%
}

.right-0 {
  right: 0
}

.right-1\/4 {
  right: 25%
}

.top-0 {
  top: 0
}

.top-1\/3 {
  top: 33.333333%
}

.top-1\/4 {
  top: 25%
}

.z-10 {
  z-index: 10
}

.z-20 {
  z-index: 20
}

.z-50 {
  z-index: 50
}

/* ─── Utilidades de márgenes y espaciado ──────────────────────────── */
.mx-auto {
  margin-left: auto;
  margin-right: auto  /* Centrar horizontalmente */
}

.mb-1 {
  margin-bottom: .25rem
}

.mb-10 {
  margin-bottom: 2.5rem
}

.mb-12 {
  margin-bottom: 3rem
}

.mb-2 {
  margin-bottom: .5rem
}

.mb-20 {
  margin-bottom: 5rem
}

.mb-3 {
  margin-bottom: .75rem
}

.mb-6 {
  margin-bottom: 1.5rem
}

.mb-8 {
  margin-bottom: 2rem
}

.ml-1 {
  margin-left: .25rem
}

.ml-2 {
  margin-left: .5rem
}

.ml-4 {
  margin-left: 1rem
}

.mr-3 {
  margin-right: .75rem
}

.mt-1 {
  margin-top: .25rem
}

.mt-3 {
  margin-top: .75rem
}

.mt-6 {
  margin-top: 1.5rem
}

/* ─── Utilidades de display y aspect ratio ────────────────────────── */
.block {
  display: block
}

.flex {
  display: flex
}

.inline-flex {
  display: inline-flex
}

.grid {
  display: grid
}

.hidden {
  display: none
}

.aspect-square {
  aspect-ratio: 1/1  /* Proporción 1:1 (cuadrado perfecto) */
}

/* ─── Utilidades de dimensiones (height, width, max-width) ──────── */
.h-10 {
  height: 2.5rem
}

.h-12 {
  height: 3rem
}

.h-14 {
  height: 3.5rem
}

.h-2 {
  height: .5rem
}

.h-20 {
  height: 5rem
}

.h-4 {
  height: 1rem
}

.h-48 {
  height: 12rem
}

.h-5 {
  height: 1.25rem
}

.h-6 {
  height: 1.5rem
}

.h-64 {
  height: 16rem
}

.h-7 {
  height: 1.75rem
}

.h-96 {
  height: 24rem
}

.h-auto {
  height: auto
}

.h-full {
  height: 100%
}

.min-h-screen {
  min-height: 100vh
}

.w-1\/2 {
  width: 50%
}

.w-10 {
  width: 2.5rem
}

.w-14 {
  width: 3.5rem
}

.w-2 {
  width: .5rem
}

.w-4 {
  width: 1rem
}

.w-5 {
  width: 1.25rem
}

.w-6 {
  width: 1.5rem
}

.w-64 {
  width: 16rem
}

.w-7 {
  width: 1.75rem
}

.w-96 {
  width: 24rem
}

.w-\[1px\] {
  width: 1px
}

.w-auto {
  width: auto
}

.w-full {
  width: 100%
}

.max-w-2xl {
  max-width: 42rem
}

.max-w-4xl {
  max-width: 56rem
}

.max-w-7xl {
  max-width: 80rem
}

.max-w-md {
  max-width: 28rem
}

.max-w-xl {
  max-width: 36rem
}

.flex-shrink-0 {
  flex-shrink: 0
}

.flex-grow {
  flex-grow: 1
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%
}

.-translate-x-1\/2,
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

/* ─── Animaciones (spin, blob, fadeInUp, pulse, bounce) ──────────── */
.animate-\[spin_60s_linear_infinite\] {
  animation: spin 60s linear infinite  /* Rotación lenta decorativa */
}

@keyframes spin {
  to {
    transform: rotate(1turn)
  }
}

.animate-\[spin_90s_linear_infinite_reverse\] {
  animation: spin 90s linear infinite reverse
}

@keyframes blob {
  0% {
    transform: translate(0) scale(1)
  }

  33% {
    transform: translate(30px, -50px) scale(1.1)
  }

  66% {
    transform: translate(-20px, 20px) scale(.9)
  }

  to {
    transform: translate(0) scale(1)
  }
}

.animate-blob {
  animation: blob 7s infinite
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.animate-fade-in-up {
  animation: fadeInUp .8s ease-out forwards
}

@keyframes pulse {
  50% {
    opacity: .5
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite
}

.resize-none {
  resize: none
}

/* ─── Utilidades de Grid y Flexbox ────────────────────────────────── */
.auto-rows-\[minmax\(300px\2c _auto\)\] {
  grid-auto-rows: minmax(300px, auto)
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr))  /* 1 columna */
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))  /* 2 columnas */
}

.flex-col {
  flex-direction: column
}

.flex-wrap {
  flex-wrap: wrap
}

.items-start {
  align-items: flex-start
}

.items-center {
  align-items: center
}

.justify-end {
  justify-content: flex-end
}

.justify-center {
  justify-content: center
}

.justify-between {
  justify-content: space-between
}

.gap-20 {
  gap: 5rem
}

.gap-4 {
  gap: 1rem
}

.gap-6 {
  gap: 1.5rem
}

.gap-8 {
  gap: 2rem
}

.space-x-8>:not([hidden])~:not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(2rem*var(--tw-space-x-reverse));
  margin-left: calc(2rem*(1 - var(--tw-space-x-reverse)))
}

.space-y-2>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(.5rem*(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(.5rem*var(--tw-space-y-reverse))
}

.space-y-4>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem*(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem*var(--tw-space-y-reverse))
}

.space-y-6>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem*(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem*var(--tw-space-y-reverse))
}

/* ─── Overflow y scroll ──────────────────────────────────────────── */
.overflow-hidden {
  overflow: hidden
}

.overflow-x-hidden {
  overflow-x: hidden
}

.scroll-smooth {
  scroll-behavior: smooth  /* Scroll suave entre secciones */
}

/* ─── Bordes redondeados ─────────────────────────────────────────── */
.rounded-2xl {
  border-radius: 1rem
}

.rounded-full {
  border-radius: 9999px  /* Círculo perfecto */
}

.rounded-md {
  border-radius: .375rem
}

.rounded-xl {
  border-radius: .75rem
}

/* ─── Bordes y colores de borde ──────────────────────────────────── */
.border {
  border-width: 1px
}

.border-y {
  border-top-width: 1px
}

.border-b,
.border-y {
  border-bottom-width: 1px
}

.border-t {
  border-top-width: 1px
}

/* Bordes con color rojo brand a distintas opacidades */
.border-brand-red\/20 {
  border-color: rgba(220, 38, 38, .2)
}

.border-brand-red\/30 {
  border-color: rgba(220, 38, 38, .3)
}

.border-brand-red\/50 {
  border-color: rgba(220, 38, 38, .5)
}

/* Bordes blancos a distintas opacidades (semi-transparentes) */
.border-white\/10 {
  border-color: hsla(0, 0%, 100%, .1)
}

.border-white\/5 {
  border-color: hsla(0, 0%, 100%, .05)
}

.border-white\/\[0\.02\] {
  border-color: hsla(0, 0%, 100%, .02)
}

.border-white\/\[0\.05\] {
  border-color: hsla(0, 0%, 100%, .05)
}

/* ─── Colores de fondo ───────────────────────────────────────────── */
.bg-\[\#020202\] {
  --tw-bg-opacity: 1;
  background-color: rgb(2 2 2/var(--tw-bg-opacity, 1))
}

.bg-\[\#050505\] {
  --tw-bg-opacity: 1;
  background-color: rgb(5 5 5/var(--tw-bg-opacity, 1))
}

.bg-black\/50 {
  background-color: rgba(0, 0, 0, .5)
}

.bg-brand-dark {
  --tw-bg-opacity: 1;
  background-color: rgb(3 3 3/var(--tw-bg-opacity, 1))
}

.bg-brand-dark\/50 {
  background-color: rgba(3, 3, 3, .5)
}

.bg-brand-dark\/80 {
  background-color: rgba(3, 3, 3, .8)
}

.bg-brand-dark\/95 {
  background-color: rgba(3, 3, 3, .95)
}

.bg-brand-red {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1))
}

.bg-brand-red\/10 {
  background-color: rgba(220, 38, 38, .1)
}

.bg-brand-red\/20 {
  background-color: rgba(220, 38, 38, .2)
}

.bg-neutral-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(23 23 23/var(--tw-bg-opacity, 1))
}

.bg-rose-600\/10 {
  background-color: rgba(225, 29, 72, .1)
}

.bg-white\/5 {
  background-color: hsla(0, 0%, 100%, .05)
}

.bg-\[url\(\'https\:\/\/images\.unsplash\.com\/photo-1649180556628-9ba704115795\?auto\=format\&fit\=crop\&q\=80\&w\=800\'\)\] {
  background-image: url(https://images.unsplash.com/photo-1649180556628-9ba704115795?auto=format&fit=crop&q=80&w=800)
}

/* ─── Gradientes de fondo (usados en overlays, sombras, decoración) ── */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops))
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops))
}

.bg-gradient-to-l {
  background-image: linear-gradient(to left, var(--tw-gradient-stops))
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops))
}

.from-brand-dark {
  --tw-gradient-from: #030303 var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(3, 3, 3, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.from-brand-red {
  --tw-gradient-from: #dc2626 var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(220, 38, 38, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.from-brand-red\/20 {
  --tw-gradient-from: rgba(220, 38, 38, .2) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(220, 38, 38, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.from-brand-red\/\[0\.03\] {
  --tw-gradient-from: rgba(220, 38, 38, .03) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(220, 38, 38, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.via-brand-dark\/80 {
  --tw-gradient-to: rgba(3, 3, 3, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgba(3, 3, 3, .8) var(--tw-gradient-via-position), var(--tw-gradient-to)
}

.to-transparent {
  --tw-gradient-to: transparent var(--tw-gradient-to-position)
}

.bg-cover {
  background-size: cover
}

.bg-center {
  background-position: 50%
}

.object-contain {
  -o-object-fit: contain;
  object-fit: contain
}

/* ─── Utilidades de padding ──────────────────────────────────────── */
.p-12 {
  padding: 3rem
}

.p-2 {
  padding: .5rem
}

.p-4 {
  padding: 1rem
}

.p-6 {
  padding: 1.5rem
}

.p-8 {
  padding: 2rem
}

.px-3 {
  padding-left: .75rem;
  padding-right: .75rem
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem
}

.py-2 {
  padding-top: .5rem;
  padding-bottom: .5rem
}

.py-2\.5 {
  padding-top: .625rem;
  padding-bottom: .625rem
}

.py-3 {
  padding-top: .75rem;
  padding-bottom: .75rem
}

.py-3\.5 {
  padding-top: .875rem;
  padding-bottom: .875rem
}

.py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem
}

.pb-20 {
  padding-bottom: 5rem
}

.pb-6 {
  padding-bottom: 1.5rem
}

.pt-20 {
  padding-top: 5rem
}

.pt-32 {
  padding-top: 8rem
}

.pt-4 {
  padding-top: 1rem
}

/* ─── Alineación de texto ────────────────────────────────────────── */
.text-left {
  text-align: left
}

.text-center {
  text-align: center
}

/* ─── Familias tipográficas ──────────────────────────────────────── 
   font-display = Outfit (títulos, headings)
   font-mono    = Monoespaciada (code blocks)
   font-sans    = Inter (texto general)
   ──────────────────────────────────────────────────────────────────── */
.font-display {
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, sans-serif
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace
}

.font-sans {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif
}

/* ─── Tamaños de texto ───────────────────────────────────────────── */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem
}

.text-5xl {
  font-size: 3rem;
  line-height: 1
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem
}

.text-sm {
  font-size: .875rem;
  line-height: 1.25rem
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem
}

.text-xs {
  font-size: .75rem;
  line-height: 1rem
}

.font-black {
  font-weight: 900
}

.font-bold {
  font-weight: 700
}

.font-light {
  font-weight: 300
}

.font-medium {
  font-weight: 500
}

.font-semibold {
  font-weight: 600
}

.uppercase {
  text-transform: uppercase
}

.leading-\[1\.1\] {
  line-height: 1.1
}

.leading-relaxed {
  line-height: 1.625
}

.leading-tight {
  line-height: 1.25
}

.tracking-tight {
  letter-spacing: -.025em
}

.tracking-tighter {
  letter-spacing: -.05em
}

.tracking-wide {
  letter-spacing: .025em
}

.tracking-widest {
  letter-spacing: .1em
}

/* ─── Colores de texto ───────────────────────────────────────────── */
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250/var(--tw-text-opacity, 1))
}

.text-brand-red {
  --tw-text-opacity: 1;
  color: rgb(220 38 38/var(--tw-text-opacity, 1))  /* Rojo de la marca */
}

.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128/var(--tw-text-opacity, 1))
}

.text-neutral-400 {
  --tw-text-opacity: 1;
  color: rgb(163 163 163/var(--tw-text-opacity, 1))
}

.text-neutral-500 {
  --tw-text-opacity: 1;
  color: rgb(115 115 115/var(--tw-text-opacity, 1))
}

.text-neutral-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 82/var(--tw-text-opacity, 1))
}

.text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252/var(--tw-text-opacity, 1))
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.text-yellow-300 {
  --tw-text-opacity: 1;
  color: rgb(253 224 71/var(--tw-text-opacity, 1))
}

/* Suavizado de fuentes para pantallas de alta resolución */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

.placeholder-neutral-500::-moz-placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(115 115 115/var(--tw-placeholder-opacity, 1))
}

.placeholder-neutral-500::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(115 115 115/var(--tw-placeholder-opacity, 1))
}

.opacity-10 {
  opacity: .1
}

.opacity-20 {
  opacity: .2
}

.opacity-50 {
  opacity: .5
}

.opacity-90 {
  opacity: .9
}

.mix-blend-screen {
  mix-blend-mode: screen
}

/* ─── Sombras y filtros ──────────────────────────────────────────── */
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color)
}

.shadow-2xl,
.shadow-\[0_0_20px_rgba\(220\2c 38\2c 38\2c 0\.2\)\] {
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.shadow-\[0_0_20px_rgba\(220\2c 38\2c 38\2c 0\.2\)\] {
  --tw-shadow: 0 0 20px rgba(220, 38, 38, .2);
  --tw-shadow-colored: 0 0 20px var(--tw-shadow-color)
}

.shadow-brand-red\/20 {
  --tw-shadow-color: rgba(220, 38, 38, .2);
  --tw-shadow: var(--tw-shadow-colored)
}

.blur {
  --tw-blur: blur(8px)
}

.blur,
.blur-\[100px\] {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}

.blur-\[100px\] {
  --tw-blur: blur(100px)
}

.blur-\[60px\] {
  --tw-blur: blur(60px)
}

.blur-\[60px\],
.blur-xl {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}

.blur-xl {
  --tw-blur: blur(24px)
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}

.backdrop-blur-2xl {
  --tw-backdrop-blur: blur(40px)
}

.backdrop-blur-2xl,
.backdrop-blur-3xl {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}

.backdrop-blur-3xl {
  --tw-backdrop-blur: blur(64px)
}

.backdrop-blur-md {
  --tw-backdrop-blur: blur(12px)
}

.backdrop-blur-md,
.backdrop-blur-xl {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}

.backdrop-blur-xl {
  --tw-backdrop-blur: blur(24px)
}

/* ─── Transiciones y duraciones ──────────────────────────────────── */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s
}

.duration-300 {
  transition-duration: .3s
}

.duration-500 {
  transition-duration: .5s
}

.duration-700 {
  transition-duration: .7s
}

.ease-in-out {
  transition-timing-function: cubic-bezier(.4, 0, .2, 1)
}

/* ─── Texto con gradiente (efecto visual en títulos) ─────────────── 
   .text-gradient       → blanco a gris (subtítulos elegantes)
   .text-gradient-brand → rojo claro a rojo oscuro (marca)
   ──────────────────────────────────────────────────────────────────── */
.text-gradient {
  background-image: linear-gradient(135deg, #fff, #a1a1aa)
}

.text-gradient,
.text-gradient-brand {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent  /* El texto se "rellena" con el gradiente */
}

.text-gradient-brand {
  background-image: linear-gradient(135deg, #f87171, #dc2626)  /* Rojo claro → rojo marca */
}


/* ─── Selección de texto personalizada (fondo rojo, texto blanco) ── */
.selection\:bg-brand-red ::-moz-selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1))
}

.selection\:bg-brand-red ::selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1))
}

.selection\:text-white ::-moz-selection {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.selection\:text-white ::selection {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.selection\:bg-brand-red::-moz-selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1))
}

.selection\:bg-brand-red::selection {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1))
}

.selection\:text-white::-moz-selection {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.selection\:text-white::selection {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

/* ─── Estados hover, focus y group-hover ─────────────────────────── */
.hover\:bg-brand-red:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38/var(--tw-bg-opacity, 1))
}

.hover\:bg-white\/5:hover {
  background-color: hsla(0, 0%, 100%, .05)
}

.hover\:text-brand-red:hover {
  --tw-text-opacity: 1;
  color: rgb(220 38 38/var(--tw-text-opacity, 1))
}

.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.focus\:border-brand-red:focus {
  --tw-border-opacity: 1;
  border-color: rgb(220 38 38/var(--tw-border-opacity, 1))
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px
}

.focus\:ring-1:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}

.focus\:ring-brand-red:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(220 38 38/var(--tw-ring-opacity, 1))
}

.group:hover .group-hover\:translate-x-1 {
  --tw-translate-x: 0.25rem
}

.group:hover .group-hover\:scale-105,
.group:hover .group-hover\:translate-x-1 {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

.group:hover .group-hover\:scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05
}

.group:hover .group-hover\:bg-brand-red\/20 {
  background-color: rgba(220, 38, 38, .2)
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1
}

.group:hover .group-hover\:opacity-20 {
  opacity: .2
}

.group:hover .group-hover\:drop-shadow-\[0_0_15px_rgba\(220\2c 38\2c 38\2c 0\.5\)\] {
  --tw-drop-shadow: drop-shadow(0 0 15px rgba(220, 38, 38, .5));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}

/* ─── Media Queries Responsive ───────────────────────────────────── 
   sm: ≥640px  (móviles grandes / tablets pequeñas)
   md: ≥768px  (tablets)
   lg: ≥1024px (escritorio)
   ──────────────────────────────────────────────────────────────────── */
@media (min-width:640px) {
  .sm\:h-12 {
    height: 3rem
  }

  .sm\:flex-row {
    flex-direction: row
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem
  }
}

@media (min-width:768px) {
  .md\:col-span-4 {
    grid-column: span 4/span 4
  }

  .md\:col-span-5 {
    grid-column: span 5/span 5
  }

  .md\:col-span-7 {
    grid-column: span 7/span 7
  }

  .md\:col-span-8 {
    grid-column: span 8/span 8
  }

  .md\:mt-0 {
    margin-top: 0
  }

  .md\:flex {
    display: flex
  }

  .md\:inline-flex {
    display: inline-flex
  }

  .md\:hidden {
    display: none
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr))
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .md\:flex-row {
    flex-direction: row
  }

  .md\:items-end {
    align-items: flex-end
  }

  .md\:justify-between {
    justify-content: space-between
  }

  .md\:p-20 {
    padding: 5rem
  }

  .md\:text-right {
    text-align: right
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1
  }

  .md\:text-8xl {
    font-size: 6rem;
    line-height: 1
  }
}

@media (min-width:1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem
  }

  .lg\:pb-32 {
    padding-bottom: 8rem
  }

  .lg\:pt-48 {
    padding-top: 12rem
  }
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM — Marty McFly AI Agency
   ═══════════════════════════════════════════════════════════════
   ÍNDICE:
   1. VARIABLES GLOBALES Y RESETS
   2. UTILIDADES COMUNES (logo, mesh-bg, float, glow, delays)
   3. HEADER (topbar, mainnav, burger, mobile overlay)
   4. HERO (overlays, CTAs desktop/mobile, sound button)
   5. CONTACTO (título y formulario)
   6. FOOTER (CTA, marquee, info row, bottom bar)
   7. CHAT MODAL (modal flotante arrastrable)
   8. ANIMACIONES PREMIUM (cursor, scroll bar, noise,
      reveal effects, magnetic, parallax, glitch)
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   1. VARIABLES GLOBALES Y RESETS
   ─────────────────────────────────────────────────────────────── */
:root {
  --brand-red: #dc2626;
  --brand-dark: #030303;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Impide scroll horizontal en toda la página */
}

/* Regla global: ningún elemento puede ser más ancho que la pantalla */
@media (max-width: 767px) {
  * { box-sizing: border-box; }
  body, html { max-width: 100vw; }
}


/* ───────────────────────────────────────────────────────────────
   2. UTILIDADES COMUNES
   ─────────────────────────────────────────────────────────────── */

/* Logo en blanco puro */
.logo-white {
  filter: brightness(0) invert(1);
}

/* ─── Mesh Background ─────────────────────────────────────────── */
.mesh-bg {
  background-image:
    radial-gradient(at 0% 0%, rgba(220, 38, 38, .12) 0px, transparent 60%),
    radial-gradient(at 100% 0%, rgba(220, 38, 38, .06) 0px, transparent 60%);
}

/* ─── Float animation ─────────────────────────────────────────── */
@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-float {
  animation: float-y 4s ease-in-out infinite;
}

/* ─── Hero glow decor ─────────────────────────────────────────── */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, .15) 0%, rgba(10, 10, 10, 0) 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

/* ─── Animation delays ────────────────────────────────────────── */
.animate-delay-100 {
  animation-delay: .1s;
}

.animate-delay-200 {
  animation-delay: .2s;
}

.animate-delay-300 {
  animation-delay: .3s;
}

.animate-delay-400 {
  animation-delay: .4s;
}

.animate-delay-500 {
  animation-delay: .5s;
}

/* ───────────────────────────────────────────────────────────────
   3. HEADER — Topbar + Mainnav + Burger + Mobile Overlay
   ─────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all .35s ease;
}

/* ── Topbar ───────────────────────────────────────────────────── */
.hdr-topbar {
  height: 38px;
  background: #000;
  overflow: hidden;
  transition: height .35s ease, opacity .3s ease;
}

.site-header.scrolled .hdr-topbar {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.hdr-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hdr-topbar-left,
.hdr-topbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hdr-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .25s;
}

.hdr-topbar-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.hdr-topbar-link:hover {
  color: #fff;
}

.hdr-topbar-social {
  color: rgba(255, 255, 255, .45);
  font-size: .72rem;
  letter-spacing: .03em;
  text-decoration: none;
  transition: color .25s;
}

.hdr-topbar-social:hover {
  color: #dc2626;
}

.hdr-topbar-sep {
  color: rgba(255, 255, 255, .2);
  font-size: .7rem;
}

/* ── Main nav ─────────────────────────────────────────────────── */
.hdr-nav-wrap {
  height: 114px;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}

.site-header.scrolled .hdr-nav-wrap {
  background: rgba(3, 3, 3, .93);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 32px rgba(0, 0, 0, .5);
}

.hdr-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}

/* Logo */
.hdr-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.hdr-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hdr-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: #fff;
}

.hdr-logo-accent {
  color: #dc2626;
}

/* Nav links izquierda */
.hdr-links-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
}

/* Columna derecha: links + burger */
.hdr-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .25rem;
}

/* Nav links derecha */
.hdr-links-right {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.navbar-link {
  position: relative;
  color: rgba(255, 255, 255, .6);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .45rem .85rem;
  border-radius: .4rem;
  transition: color .25s, background .25s;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: #dc2626;
  border-radius: 1px;
  transition: left .3s ease, right .3s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: #fff;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  left: .85rem;
  right: .85rem;
}

/* Actions */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* CTA button */
.hdr-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.25rem;
  border-radius: 9999px;
  background: #dc2626;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .25s, box-shadow .25s, transform .2s;
  white-space: nowrap;
}

.hdr-cta svg {
  width: 15px;
  height: 15px;
}

.hdr-cta:hover {
  background: #b91c1c;
  box-shadow: 0 0 24px rgba(220, 38, 38, .5);
}

/* Burger */
.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.navbar-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
  transform-origin: center;
}

.navbar-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-burger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.navbar-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile overlay ───────────────────────────────────────────── */
.hdr-mobile {
  position: fixed;
  inset: 0;
  background: #0a0a0c;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.4, 0, .2, 1);
  transform: translateY(-20px);
}

.hdr-mobile.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.hdr-mobile-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  padding: .5rem;
  transition: transform .3s, color .3s;
}

.hdr-mobile-close:hover {
  transform: rotate(90deg);
  color: #fff;
}

.hdr-mobile-close svg {
  width: 28px;
  height: 28px;
}

.hdr-mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.hdr-mobile-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color .3s, transform .4s cubic-bezier(.4, 0, .2, 1);
  transform: translateY(20px);
  opacity: 0;
  line-height: 1.1;
}

.hdr-mobile.open .hdr-mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.hdr-mobile.open .hdr-mobile-link:nth-child(1) {
  transition-delay: .1s;
}

.hdr-mobile.open .hdr-mobile-link:nth-child(2) {
  transition-delay: .15s;
}

.hdr-mobile.open .hdr-mobile-link:nth-child(3) {
  transition-delay: .2s;
}

.hdr-mobile.open .hdr-mobile-link:nth-child(4) {
  transition-delay: .25s;
}

.hdr-mobile-link:hover,
.hdr-mobile-link.active {
  color: #f4f4f5;
}

.hdr-num {
  font-size: 1rem;
  font-weight: 800;
  color: #dc2626;
  font-family: 'Inter', sans-serif;
  transform: translateY(-4px);
}

.hdr-mobile-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.5rem;
  margin-top: 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .4s ease .3s, transform .4s ease .3s;
}

.hdr-mobile.open .hdr-mobile-footer {
  transform: translateY(0);
  opacity: 1;
}

.hdr-mobile-phone {
  font-size: 1.2rem;
  font-weight: 800;
  color: #dc2626;
  text-decoration: none;
  transition: color .3s;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

.hdr-mobile-phone:hover {
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1023px) {

  .hdr-links-left,
  .hdr-links-right {
    display: none;
  }

  .navbar-burger {
    display: flex;
  }
}

@media (max-width: 599px) {
  .hdr-topbar-left {
    display: none;
  }
}

main section[id] {
  scroll-margin-top: 80px;
}

/* #inicio no necesita padding-top — el video ocupa 100vh desde arriba */

/* ─── Hero: fix responsive video ──────────────────────────────── */
/* Usamos dvh para evitar el corte por la barra del navegador en móvil */
#inicio {
  position: relative;
  width: 100%;
  max-width: 100vw;        /* evita que ningún hijo desborde hacia la derecha */
  overflow: hidden;        /* corta cualquier desbordamiento horizontal */
  height: 100vh;
  /* fallback */
  height: 100dvh;
  /* viewport dinámico — evita el corte en iOS/Android */
  min-height: 500px;
}

/* El vídeo no puede ser más ancho que su contenedor */
#inicio video {
  max-width: 100%;
  object-position: center center;
}

@media (max-width: 767px) {
  /* Forzamos que el section tenga posición y dimensiones correctas */
  #inicio {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  /* El vídeo debe cubrir absolutamente toda la sección */
  #inicio video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Lando Norris: muestra al personaje desde arriba */
  }
}


/* ───────────────────────────────────────────────────────────────
   4. HERO — Overlays, CTAs, Sound Button
   ─────────────────────────────────────────────────────────────── */
/* Overlays nunca capturan eventos — los botones debajo siempre son clicables */
.hero-overlay--desktop,
.hero-overlay--mobile,
.hero-overlay-bottom,
.hero-overlay-bottom--mobile {
  pointer-events: none;
}

/* DESKTOP overlay: sutil, diagonal */
.hero-overlay--desktop {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.65) 100%
  );
}
/* MOBILE overlay: muy ligero, solo tinge */
.hero-overlay--mobile {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.18);
  display: none;
}
.hero-overlay-bottom {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 40%);
}
/* En móvil el gradiente inferior es más compacto */
.hero-overlay-bottom--mobile {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.10) 38%, transparent 60%);
  display: none;
}

/* ─── DESKTOP CTAs: centrados abajo ─────────────────────────────── */
.hero-desktop-ctas {
  position: absolute;
  bottom: 9rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ─── MOBILE content: label arriba + botones abajo ──────────────── */
/* Por defecto (desktop) ocultamos el bloque móvil */
.hero-content {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
}
.hero-content-spacer { flex: 1; }

/* Label roja pequeña */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 0;
  opacity: 0;
  animation: fadeIn .8s ease .3s forwards;
}
.hero-label-dot {
  width: 7px; height: 7px;
  background: #dc2626;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── CTA buttons ────────────────────────────────────────────────── */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  opacity: 0;
  animation: fadeIn .8s ease .9s forwards;
}

.hero-btn {
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.85rem;
  min-width: 220px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .015em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
  justify-content: center;
}
.hero-btn-primary {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 28px rgba(220,38,38,.4);
}
.hero-btn-primary:hover {
  background: #b91c1c;
  box-shadow: 0 0 42px rgba(220,38,38,.65);
}
.hero-btn-ghost {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
}

/* ─── Sound button ───────────────────────────────────────────────── */
.hero-sound-btn {
  position: absolute;
  bottom: 9rem; right: 2rem;
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.hero-sound-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
}

@media (max-width: 767px) {
  /* Activamos overlay móvil, desactivamos desktop */
  .hero-overlay--desktop { display: none; }
  .hero-overlay--mobile   { display: block; }
  .hero-overlay-bottom--mobile { display: block; }

  /* Botones desktop → ocultos */
  .hero-desktop-ctas { display: none; }

  /* Content móvil → visible como flex column */
  .hero-content {
    display: flex;
    padding: 40px 1.1rem 1.2rem;
  }

  /* Botones móvil: ancho completo, apilados */
  .hero-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: .95rem;
  }

  /* Gradiente inferior solo en el tercio final */
  .hero-overlay-bottom--mobile {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.92) 0%,
      rgba(0,0,0,0.55) 18%,
      rgba(0,0,0,0.10) 35%,
      transparent 50%
    );
  }

  /* Mute button → fixed encima de todo (z > header), esquina inferior derecha */
  .hero-sound-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    top: auto;
    left: auto;
    z-index: 1100; /* por encima del header (1000) */
  }
}



/* ─── Tablet ≥768px ──────────────────────────────────────────────── */
@media (min-width: 768px) {
  .hero-overlay--desktop { display: block; }
  .hero-overlay--mobile   { display: none !important; }
  .hero-overlay-bottom--mobile { display: none !important; }
  .hero-desktop-ctas { display: flex; }
  .hero-content { display: none !important; }
}



/* ───────────────────────────────────────────────────────────────
   5. CONTACTO — Título y formulario
   ─────────────────────────────────────────────────────────────── */
.contact-title-block {
  margin-bottom: 1.75rem;
}
.contact-title-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
}
.contact-title-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #dc2626;
  border-radius: 50%;
}
.contact-title-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  letter-spacing: -.02em;
}
.contact-title-accent {
  display: inline-block;
  color: #dc2626;
  position: relative;
}
.contact-title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(to right, #dc2626, transparent);
  border-radius: 2px;
  opacity: .5;
}


/* ───────────────────────────────────────────────────────────────
   6. FOOTER — CTA, marquee, info, bottom bar
   ─────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  overflow: hidden;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.footer-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(220, 38, 38, .12);
  top: -150px;
  left: -100px;
}

.footer-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(220, 38, 38, .08);
  bottom: 0;
  right: -80px;
}

.footer-cta-wrap {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem 3rem;
  text-align: center;
}

.footer-overline {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 1.25rem;
}

.footer-big-link {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color .3s;
}

.footer-big-link::before {
  content: '';
  position: absolute;
  bottom: .05em;
  left: 0;
  right: 100%;
  height: .06em;
  background: #dc2626;
  border-radius: 2px;
  transition: right .5s cubic-bezier(.4, 0, .2, 1);
}

.footer-big-link:hover {
  color: #dc2626;
}

.footer-big-link:hover::before {
  right: 0;
}

.footer-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
  padding: .9rem 0;
}

.footer-marquee-track {
  display: flex;
  width: max-content;
  animation: footer-marquee-anim 28s linear infinite;
}

@keyframes footer-marquee-anim {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.footer-marquee-content {
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  padding-right: 2rem;
}

.footer-marquee-sep {
  color: #dc2626;
  margin: 0 1rem;
}

.footer-info-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.footer-info-block {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-width: 200px;
}

.footer-info-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}

.footer-email-wrap {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.footer-email {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  text-decoration: none;
  transition: color .25s;
}

.footer-email:hover {
  color: #dc2626;
}

.footer-copy-btn {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9999px;
  padding: .25rem .7rem;
  background: transparent;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}

.footer-copy-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer-social {
  color: rgba(255, 255, 255, .55);
  font-size: .875rem;
  text-decoration: none;
  transition: color .25s;
}

.footer-social:hover {
  color: #fff;
}

.footer-location-text {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
}

.footer-time {
  color: rgba(255, 255, 255, .3);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.footer-bottom-bar {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.footer-bottom-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .7;
  flex-shrink: 0;
}

.footer-copyright {
  font-size: .78rem;
  color: rgba(255, 255, 255, .3);
  line-height: 1;
}

.footer-tagline {
  font-size: .78rem;
  color: rgba(255, 255, 255, .2);
  letter-spacing: .04em;
}

/* ───────────────────────────────────────────────────────────────
   7. CHAT MODAL — Modal flotante arrastrable
   ─────────────────────────────────────────────────────────────── */

/* Modal: oculto por defecto, visible con .open */
.chat-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 420px;
  height: 550px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(220, 38, 38, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
  /* cursor: move se activa solo en el header via JS */
}

.chat-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Header arrastrable */
.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.chat-modal-header:active {
  cursor: grabbing;
}

.chat-modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-modal-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(220, 38, 38, 0.4);
  flex-shrink: 0;
}

.chat-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-modal-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.chat-modal-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
}

/* Indicador de estado en línea */
.chat-modal-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 4px;
}

.chat-modal-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: cm-ping 2s ease-in-out infinite;
}

@keyframes cm-ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Botón cerrar */
.chat-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.chat-modal-close:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

.chat-modal-close svg {
  width: 15px;
  height: 15px;
}

/* Área de mensajes */
.chat-modal-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-modal-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-modal-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-modal-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Barra de entrada */
.chat-modal-input-bar {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.chat-modal-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 8px 10px 8px 14px;
  transition: border-color 0.2s;
}

.chat-modal-input-row:focus-within {
  border-color: rgba(220, 38, 38, 0.4);
}

.chat-modal-textarea {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  resize: none;
  color: #e5e5e5;
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
}

.chat-modal-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.chat-modal-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.chat-modal-send-btn:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

.chat-modal-send-btn:disabled {
  background: rgba(220, 38, 38, 0.3);
  cursor: not-allowed;
  transform: none;
}

.chat-modal-send-btn svg {
  width: 16px;
  height: 16px;
}

.chat-modal-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* Responsive: en móvil ocupa casi toda la pantalla */
@media (max-width: 480px) {
  .chat-modal {
    width: calc(100vw - 24px);
    height: calc(100dvh - 80px);
    bottom: 12px;
    right: 12px;
    left: 12px;
    border-radius: 16px;
  }
}



/* ───────────────────────────────────────────────────────────────
   8. ANIMACIONES PREMIUM — Cursor, scroll bar, noise,
      reveal effects, magnetic, parallax, glitch
   ─────────────────────────────────────────────────────────────── */

/* ─── Custom cursor ───────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.3s ease;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(220, 38, 38, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, transform 0.15s ease;
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  border-color: rgba(220, 38, 38, 0.9);
  background: rgba(220, 38, 38, 0.06);
}

/* Ocultar el cursor personalizado en dispositivos táctiles:
   @media (hover: none) matchea dispositivos que NO tienen hover real (móviles, tablets)
   El cursor nativo del sistema operativo se encarga en esos casos. */
@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ─── Scroll progress bar ─────────────────────────────────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #dc2626, #f87171);
  z-index: 2000;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ─── Noise texture overlay ───────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── Clip-path split text reveal ────────────────────────────── */
.split-line {
  overflow: hidden;
  display: block;
}

.split-line-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}

.split-line-inner.revealed {
  animation: splitReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splitReveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ─── Section label reveal (red uppercase) ───────────────────── */
.label-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.label-reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Generic fade-up elements ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 {
  transition-delay: 0.1s;
}

.fade-up-delay-2 {
  transition-delay: 0.2s;
}

.fade-up-delay-3 {
  transition-delay: 0.3s;
}

.fade-up-delay-4 {
  transition-delay: 0.4s;
}

.fade-up-delay-5 {
  transition-delay: 0.5s;
}

/* ─── Clip reveal (from bottom, like landonorris hero text) ──── */
.clip-reveal {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.clip-reveal.in-view {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
}

/* ─── Bento card stagger ─────────────────────────────────────── */
.bento-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Stat counter animation ─────────────────────────────────── */
.stat-number {
  display: inline-block;
  transition: color 0.3s;
}

.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Tech pills stagger reveal ──────────────────────────────── */
.pill-reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pill-reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Horizontal line draw animation ─────────────────────────── */
.line-draw {
  position: relative;
  overflow: hidden;
}

.line-draw::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-draw.in-view::after {
  width: 100%;
}

/* ─── Magnetic button wrapper ────────────────────────────────── */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* ─── Scroll-activated parallax orbs ─────────────────────────── */
.parallax-orb {
  will-change: transform;
}

/* ─── Character-level stagger (for big hero headline words) ──── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.2em;
}

.word-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.word-inner.revealed {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Glitch hover effect for big nav links ──────────────────── */
@keyframes glitch-shift {

  0%,
  90%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0, 0);
  }

  91% {
    clip-path: inset(10% 0 50% 0);
    transform: translate(-3px, 1px);
  }

  93% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(2px, -1px);
  }

  95% {
    clip-path: inset(30% 0 40% 0);
    transform: translate(-1px, 2px);
  }
}

/* ─── Section entrance: slide from side ──────────────────────── */
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.in-view,
.slide-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Glow pulse on hover for CTA buttons ───────────────────── */
@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
  }

  50% {
    box-shadow: 0 0 55px rgba(220, 38, 38, 0.7), 0 0 80px rgba(220, 38, 38, 0.2);
  }
}

.glow-pulse-anim {
  animation: glow-pulse 2.5s ease-in-out infinite;
}

/* fadeIn: animación base para aparición suave (opacity 0 → 1).
   Usada en .hero-label y .hero-ctas del bloque MOBILE del hero.
   Se combina con animation-delay para escalonar la aparición. */
@keyframes fadeIn {
  to { opacity: 1; }
}