/* ============================================================
   Red Dominion — Hoja de estilos principal
   1. Variables      5. Hero            9. Portfolio
   2. Reset/Base     6. Brands         10. CTA / Contact
   3. Utilidades     7. Services       11. Footer
   4. Header/Nav     8. About          12. Animaciones
   ============================================================ */

/* ---------- 1. VARIABLES ---------- */
/* Paleta Red Dominion: rojo neón sobre negro. Cambiando --red y los
   degradados de abajo se reviste el sitio entero. */
:root {
  --bg:            #000000;
  --bg-2:          #080404;
  --bg-3:          #120707;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 40, 30, 0.40);

  --red:        #FF1E14;  /* núcleo del neón */
  --red-bright: #FF4438;
  --red-deep:   #A60D08;
  --red-light:  #FF8A80;

  --text:        #FFFFFF;
  --text-muted:  #A79C9C;
  --text-dim:    #756A6A;

  --grad-red:   linear-gradient(135deg, #FF4438 0%, #D31008 100%);
  --grad-text:  linear-gradient(180deg, #FF6B5E 0%, #D91008 100%);
  --grad-card:  linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));

  --glow-red:  0 0 40px rgba(255, 30, 20, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .75);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .6);

  /* Chakra Petch (titulares) y Saira (texto): geométricas y de trazo
     cuadrado. Ambas traen latin-ext, así que los acentos se ven bien. */
  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font: 'Saira', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Todo a 90°: el look futurista se apoya en la esquina viva */
  --radius:    0;
  --radius-sm: 0;
  --radius-lg: 0;
  --radius-pill: 0;

  --container: 1200px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--red); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2E1512; }
::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }

/* ---------- 3. UTILIDADES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Titulares, botones y etiquetas en la display, en caja alta y espaciados */
h1, h2, h3, h4, .logo-text, .btn, .stat-number, .filter, .eyebrow {
  font-family: var(--font-display);
}

/* Eyebrow — "— Professional —" */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 600;
  color: var(--red-bright);
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.eyebrow-line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.eyebrow-line:last-child { background: linear-gradient(90deg, var(--red), transparent); }

.eyebrow-sm {
  justify-content: flex-start;
  font-size: .8rem;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow-sm .eyebrow-line { width: 32px; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .eyebrow-sm { justify-content: center; }

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-sub { color: var(--text-muted); font-size: 1.02rem; }

/* Corchetes de esquina tipo HUD. Se cuelgan de cualquier panel con
   .hud (necesita position:relative) usando sus dos pseudoelementos:
   uno dibuja la esquina superior izquierda, el otro la inferior derecha. */
.hud::before,
.hud::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--red);
  opacity: .55;
  transition: opacity .35s var(--ease), width .35s var(--ease), height .35s var(--ease);
  pointer-events: none;
}
/* Pegados al borde (no fuera): .work recorta con overflow:hidden */
.hud::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud:hover::before,
.hud:hover::after { opacity: 1; width: 20px; height: 20px; }

/* Botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

/* Destello que barre el botón al pasar el cursor */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg);
  transition: left .55s var(--ease);
}
.btn:hover::before { left: 125%; }

.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 90, 80, .5) inset, 0 8px 26px rgba(255, 40, 30, .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 140, 130, .8) inset, 0 12px 36px rgba(255, 40, 30, .6); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.btn-lg { padding: 17px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.play-icon {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  background: #fff;
  color: var(--bg);
  font-size: .6rem;
  padding-left: 2px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red-bright);
  font-size: .88rem;
  font-weight: 600;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Scrim suave que FLOTA sobre el hero: oscurece arriba para dar legibilidad
     al menú y se desvanece hacia abajo. Sin borde ni caja -> el header y el
     hero se sienten como un solo lienzo continuo. */
  background: linear-gradient(180deg, rgba(3, 1, 1, .70) 0%, rgba(3, 1, 1, .30) 55%, transparent 100%);
  transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  height: 68px;
  /* Al hacer scroll se vuelve más sólido, pero SIN línea ni caja (sin
     border-bottom). Sin backdrop-filter para no repintar en cada frame. */
  background: linear-gradient(180deg, rgba(3, 1, 1, .97) 0%, rgba(3, 1, 1, .9) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 1.35rem; font-weight: 500; letter-spacing: -.3px; }
.logo-text strong { font-weight: 700; }

.nav-list { display: flex; align-items: center; gap: 36px; }

.nav-link {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}

/* ============================================================
   FONDO PROTAGONISTA — negro profundo + rojo tecnológico.
   Todo en CSS: glow, grid, hexágonos, líneas digitales, partículas.
   ============================================================ */
/* Los blooms de glow van como radiales del propio fondo (sin filter:blur,
   sin capas extra) — mucho más barato de pintar y sin coste al hacer scroll. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    /* glow que "sale" de la laptop y continúa sobre el fondo */
    radial-gradient(42% 52% at 74% 55%, rgba(255, 40, 30, .26) 0%, transparent 62%),
    radial-gradient(46% 55% at 82% 28%, rgba(255, 40, 30, .32) 0%, transparent 60%),
    radial-gradient(48% 60% at 90% 36%, rgba(150, 12, 7, .28) 0%, transparent 66%),
    radial-gradient(55% 65% at 8% 92%, rgba(120, 10, 6, .24) 0%, transparent 62%),
    #030101;
}

/* Grid muy sutil, difuminado hacia los bordes */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 70, 60, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 70, 60, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 80%);
}

/* Hexágonos transparentes flotando */
.hero-hex {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='208' viewBox='0 0 240 208'%3E%3Cg fill='none' stroke='%23ff3a2e' stroke-opacity='0.16' stroke-width='1.2'%3E%3Cpath d='M60 12 108 40 108 96 60 124 12 96 12 40 Z'/%3E%3Cpath d='M180 84 216 105 216 147 180 168 144 147 144 105 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 460px 400px;
  mask-image: radial-gradient(ellipse 100% 100% at 60% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 60% 40%, #000, transparent 75%);
}

/* Líneas digitales diagonales */
.hero-lines {
  position: absolute;
  inset: -20%;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0px,
    transparent 118px,
    rgba(255, 60, 50, .10) 118px,
    rgba(255, 60, 50, .10) 119px
  );
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000, transparent 70%);
}

/* Líneas de escaneo horizontales muy tenues (sin blend-mode: se pintan una vez) */
.hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, .015) 0px,
    rgba(255, 255, 255, .015) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* Partículas ascendentes */
.hero-particles { position: absolute; inset: 0; }
.hero-particles span {
  position: absolute;
  bottom: -10px;
  left: var(--x);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px 2px rgba(255, 40, 30, .7);
  opacity: 0;
  animation: heroFloat var(--d) linear var(--delay) infinite;
}

/* Overlay negro MUY suave (nunca más oscuro que .30) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .30);
}

@keyframes heroFloat {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .9; }
  100% { transform: translateY(-96vh) scale(.4); opacity: 0; }
}

/* ============================================================
   CONTENIDO — grid de 12 columnas.
   Texto ~5/12 (izq) · mucho aire · visual ~5/12 alineado a la derecha.
   ============================================================ */
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  column-gap: 0;                 /* el aire lo dan las columnas centrales */
  row-gap: 40px;
  padding-block: 40px;
  /* Contenedor más ancho + padding lateral responsive: el contenido empieza
     antes, aprovecha las pantallas grandes y reduce el vacío de la izquierda,
     sin quedar pegado al borde. (Sobrescribe el .container de 1200px.) */
  max-width: 1600px;
  padding-inline: clamp(28px, 4vw, 64px);
}

/* Texto: protagonista, columnas 1–6 (el resto es espacio negativo hacia la
   imagen). Se mantiene el mismo tamaño de texto; solo se reubica. */
.hero-copy { grid-column: 1 / span 6; max-width: 600px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red-bright);
}
.hero-eyebrow-line { width: 46px; height: 2px; background: var(--red); box-shadow: var(--glow-red); }

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -1.5px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}
.hero-heading em {
  display: block;
  font-style: normal;
  filter: drop-shadow(0 0 28px rgba(255, 30, 20, .5));
}

.hero-lead {
  margin-top: 24px;
  max-width: 460px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  color: #C9BEBE;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Botón principal redondeado como en la referencia */
.hero-cta {
  padding: 17px 34px;
  border-radius: 12px;
  font-size: .9rem;
}

/* Métricas en vivo */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 48px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-sep { width: 1px; height: 42px; background: rgba(255, 60, 50, .28); }
.stat-number { font-size: 2rem; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.hero-stat .stat-number { color: #fff; }
.hero-stat:first-child .stat-number { color: var(--red-bright); }
.stat-label { font-size: .78rem; color: var(--text-muted); letter-spacing: .5px; }

/* ============================================================
   VISUAL — imagen tecnológica original (laptop + dashboard +
   planeta + tarjetas). NO se rediseña. Va GRANDE y VÍVIDA, a
   sangre por la derecha; solo el borde IZQUIERDO se funde con el
   fondo (los bordes superior/derecho/inferior ya coinciden con
   los bordes negros del hero, así que ahí no hay rectángulo).
   ============================================================ */
.hero-visual {
  position: absolute;
  top: 0;                         /* arranca en el borde superior: el planeta y
                                     los efectos continúan DETRÁS del header */
  right: 0;
  bottom: 0;
  /* Más ancho => el borde izquierdo de la escena se acerca al texto y se
     reduce el gap. La laptop NO crece: su escala la determina la altura
     (height-driven cover), así que ampliar el ancho solo muestra más escena. */
  width: min(78%, 1440px);
  z-index: 0;                     /* detrás del texto (hero-inner z-index:1) */
  pointer-events: none;
}
.hero-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Fundido SOLO por la izquierda: la escena se disuelve hacia el texto sin
     perder viveza en el resto. Máscara estática → sin coste al hacer scroll. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 16%, #000 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 16%, #000 40%, #000 100%);
}

/* -- Franja de características -- */
.hero-features {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 60, 50, .16);
  /* Fondo casi opaco en lugar de backdrop-filter: mismo look, sin repaint al scroll */
  background: linear-gradient(180deg, rgba(10, 5, 5, .82), rgba(5, 2, 2, .94));
}
.hero-features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  /* Mismo ancho y padding lateral que el contenido del hero para que la
     primera característica quede alineada con el texto. */
  max-width: 1600px;
  padding: 28px clamp(28px, 4vw, 64px);
}
.hero-feature { display: flex; align-items: flex-start; gap: 16px; }
.hero-feature:not(:first-child) {
  border-left: 1px solid var(--border);
  padding-left: 28px;
  margin-left: -14px;
}
.hero-feature h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .3px;
  margin-bottom: 6px;
}
.hero-feature p { font-size: .82rem; color: var(--text-muted); line-height: 1.45; }

/* Icono hexagonal con anillo rojo */
.hex-icon {
  position: relative;
  flex: 0 0 auto;
  width: 50px; height: 56px;
  display: grid;
  place-items: center;
}
.hex-icon::before,
.hex-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-icon::before { background: rgba(255, 40, 30, .55); }
.hex-icon::after  { inset: 1.6px; background: #0a0505; }
.hex-icon svg { position: relative; z-index: 1; width: 22px; height: 22px; color: var(--red-bright); }
.hero-feature:hover .hex-icon::before { background: var(--red); }
.hero-feature:hover .hex-icon svg { color: #fff; }
.hex-icon { transition: transform .3s var(--ease); }
.hero-feature:hover .hex-icon { transform: translateY(-3px); }

/* ---------- 6. BRANDS ---------- */
.brands { padding: 46px 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.brands-title {
  text-align: center;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 54px;
}
.brand {
  height: 26px;
  opacity: .45;
  filter: grayscale(1) brightness(2);
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.brand:hover { opacity: 1; filter: none; }

/* ---------- 7. SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius);
  /* El resplandor que sigue al cursor va como capa de fondo, no en ::before:
     los pseudoelementos los ocupan los corchetes de .hud. main.js escribe
     --mx/--my al mover el puntero. */
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 30, 20, .16), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 0 26px rgba(255, 30, 20, .16);
}
.service-card > * { position: relative; }

.service-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: var(--grad-red);
  box-shadow: 0 8px 20px rgba(255, 40, 30, .35);
  margin-bottom: 20px;
}
.service-icon img { filter: brightness(0) invert(1); }

.service-card h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .93rem; margin-bottom: 18px; }

/* Servicio bloqueado: se apaga y muestra candado. Sigue legible, solo
   deja de competir con los servicios que sí están disponibles. */
.service-card.locked { background: rgba(255, 255, 255, .02); }
.service-card.locked:hover { transform: none; border-color: var(--border); box-shadow: none; }
.service-card.locked .service-icon {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  box-shadow: none;
}
.service-card.locked .service-icon img { opacity: .45; }
.service-card.locked h3 { color: var(--text-muted); }
.service-card.locked p { color: var(--text-dim); }

.lock-badge {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  z-index: 1;
}
.lock-badge img { filter: brightness(0) invert(1); opacity: .55; }

.locked-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}
.locked-label img { filter: brightness(0) invert(1); opacity: .45; }

/* ---------- 8. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.about-media { position: relative; display: grid; place-items: center; }
/* El logo va suelto sobre el fondo: enmarcarlo le pondría un borde al neón */
.about-media img {
  width: 100%;
  max-width: 420px;
}

.about-badge {
  position: absolute;
  right: -18px; bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: var(--grad-red);
  box-shadow: 0 16px 40px rgba(255, 40, 30, .5);
  animation: float 5s ease-in-out infinite;
}
.about-badge-num { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.about-badge-txt { font-size: .74rem; opacity: .85; letter-spacing: 1px; }

.about-content .section-title, .about-content .section-sub { text-align: left; }

.check-list { margin: 26px 0 32px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: #D8CFCF;
  font-size: .95rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  background: var(--grad-red);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 6px; top: 9px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.about-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 8b. PLANES ---------- */
/* Resplandor detrás de las tarjetas: las despega del negro */
#planes { overflow: hidden; }
#planes::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 4%;
  width: 1100px; height: 520px;
  transform: translateX(-50%);
  /* El radial ya es suave; el blur(50px) era un filtro innecesario y caro. */
  background: radial-gradient(ellipse at center, rgba(255, 30, 20, .14), transparent 70%);
  pointer-events: none;
}
/* Franja "incluido en todos los planes": lo que comparten los tres */
.includes {
  max-width: 940px;
  margin: 0 auto 54px;
  padding: 30px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.includes-title {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--red-bright);
  text-align: center;
  margin-bottom: 22px;
}
.includes .check-list {
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 34px;
}

/* Título de cada grupo de planes, con filete a los lados */
.group-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 54px 0 26px;
  font-size: .84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--red-bright);
  white-space: nowrap;
}
.group-title::before, .group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.group-title span { flex: 0 0 auto; }

.plans-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
/* Dos planes: se centran para no quedar estirados a lo ancho */
.plans-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 0 34px rgba(255, 30, 20, .18);
}

/* Icono: tile oscuro con el símbolo en rojo. El SVG va en línea en el HTML
   para poder teñirlo con currentColor (un <img> no hereda el color). */
.plan-icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 60, 50, .22);
  color: var(--red-bright);
}
.plan-icon svg { width: 30px; height: 30px; }

.plan-name {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.plan-currency { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--red-bright); }
.plan-amount   { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.plan-period   { color: var(--text-dim); font-size: .86rem; }

/* Reserva 3 líneas (66px) + el padding inferior: alinea el separador de las tres
   tarjetas aunque el texto varíe. Con box-sizing:border-box el min-height incluye
   el padding, así que hay que sumarlo. */
.plan-for {
  color: var(--text-muted);
  font-size: .86rem;
  min-height: 90px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.plan-features { display: grid; gap: 12px; flex: 1; margin-bottom: 26px; }
.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: .87rem;
  color: #D8CFCF;
}
/* Palomita dibujada con dos bordes girados: sin icono extra que cargar */
.plan-features li::before {
  content: '';
  position: absolute;
  left: 3px; top: 5px;
  width: 5px; height: 10px;
  border: solid var(--red);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan-features strong { color: #fff; font-weight: 600; }

/* Plan intermedio: resaltado visual, sin afirmar que sea el recomendado */
.plan-featured {
  background: linear-gradient(180deg, rgba(255, 30, 20, .13), rgba(255, 255, 255, .02));
  border-color: rgba(255, 60, 50, .45);
  box-shadow: 0 0 50px rgba(255, 30, 20, .16);
}
.plan-featured .plan-icon { border-color: rgba(255, 90, 80, .45); }

.note {
  max-width: 940px;
  margin: 34px auto 0;
  padding: 14px 20px;
  border: 1px dashed rgba(255, 255, 255, .16);
  color: var(--text-dim);
  font-size: .84rem;
  text-align: center;
}

/* Acceso a los planes con correo: atenuado (no es la prioridad ahora)
   pero enlazable, porque los planes siguen a la venta */
.locked-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 940px;
  margin: 54px auto 0;
  padding: 24px 28px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.locked-banner:hover { border-color: var(--border-strong); background: var(--surface); }

.locked-banner .lock-badge {
  position: static;
  flex-shrink: 0;
  width: 42px; height: 42px;
}
.locked-banner-text { flex: 1; }
.locked-banner h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: color .35s var(--ease);
}
.locked-banner:hover h3 { color: #fff; }
.locked-banner p { font-size: .86rem; color: var(--text-dim); }
.locked-banner .link-arrow { flex-shrink: 0; }

/* ---------- Páginas internas (planes-correos.html) ---------- */
/* Compensa el header fijo: sin hero, la sección empezaría por debajo */
.section-page { padding-top: calc(var(--header-h) + 70px); }

.page-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 940px;
  margin: 0 auto 40px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .86rem;
  text-align: center;
}
.page-note a { color: var(--red-bright); font-weight: 600; }
.page-note a:hover { text-decoration: underline; }
.lock-badge-inline { position: static; width: 30px; height: 30px; flex-shrink: 0; }

.page-back { margin-top: 44px; text-align: center; }

/* ---------- 8c. HOSTING ---------- */
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin-inline: auto;
}

.host-card {
  position: relative;
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.host-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 0 30px rgba(255, 30, 20, .16);
}

.host-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  background: var(--grad-red);
  box-shadow: 0 8px 20px rgba(255, 40, 30, .35);
}
.host-icon img { filter: brightness(0) invert(1); }

.host-card h3 { font-size: 1.05rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }

.host-specs { display: flex; margin-bottom: 20px; }
.host-specs li { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.host-specs li + li { border-left: 1px solid var(--border); }
.host-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--red-bright); line-height: 1.1; }
.host-lbl { font-size: .76rem; color: var(--text-muted); }

.host-card > p { color: var(--text-muted); font-size: .88rem; margin-bottom: 22px; }

/* ---------- 8d. COMPATIBILIDAD DE CORREOS ---------- */
.compat-block { margin-top: 54px; }
.compat-block .includes-title { margin-bottom: 18px; }

.compat {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}
.compat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: border-color .3s var(--ease);
}
.compat-item:hover { border-color: var(--border-strong); }
.compat-item img { filter: brightness(0) invert(1); opacity: .8; }

/* ---------- 9. PORTFOLIO ---------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: all .3s var(--ease);
}
.filter { display: inline-flex; align-items: center; gap: 7px; }
.filter:hover { color: #fff; border-color: var(--border-strong); }
.filter.active {
  background: var(--grad-red);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 40, 30, .4);
}

/* Categoría bloqueada: el <button disabled> ya impide el clic; esto lo comunica */
.filter.locked {
  color: var(--text-dim);
  opacity: .6;
  cursor: not-allowed;
}
.filter.locked:hover { color: var(--text-dim); border-color: var(--border); }
.filter.locked img { filter: brightness(0) invert(1); opacity: .5; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work {
  position: relative;
  display: block;  /* la primera tarjeta es un <a>, que por defecto es inline */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
a.work:hover { border-color: var(--border-strong); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.07); }
.work.hide { display: none; }

.work-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px 22px 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .96) 20%, transparent);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.work:hover .work-overlay { transform: translateY(0); opacity: 1; }

.work-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 30, 20, .2);
  border: 1px solid var(--border-strong);
  color: var(--red-light);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- 10. CTA / CONTACT ---------- */
.cta-band {
  padding: 70px 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(255, 40, 30, .22), transparent),
    var(--bg-2);
  border-block: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
/* Sin base flexible el titular ocupa toda la fila y tira el botón abajo */
.cta-inner > div { flex: 1 1 520px; }
.cta-inner > .btn { flex: 0 0 auto; }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.5px; }
.cta-inner p { color: var(--text-muted); margin-top: 8px; }

/* El contacto es un botón directo a WhatsApp: sin formulario que enviar */
.contact-panel {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: 54px 40px 44px;
  background: linear-gradient(180deg, rgba(255, 30, 20, .10), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  text-align: center;
}

.btn-wa {
  padding: 18px 44px;
  font-size: 1rem;
  gap: 12px;
}
.btn-wa img { filter: brightness(0) invert(1); }

.contact-hint { margin-top: 16px; color: var(--text-muted); font-size: .9rem; }

.contact-list { margin-top: 34px; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-ico img { filter: brightness(0) invert(1); opacity: .8; }
.contact-list strong { display: block; font-size: .78rem; color: var(--text-dim); font-weight: 500; }
.contact-list a, .contact-list div > span { font-size: .98rem; transition: color .3s var(--ease); }
.contact-list a:hover { color: var(--red-bright); }

/* Variante en fila para el panel de contacto */
.contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.footer-wa { margin-top: 20px; }

/* ---------- 11. FOOTER ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 70px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin: 16px 0 20px; max-width: 300px; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.socials a img { filter: brightness(0) invert(1); opacity: .7; transition: opacity .3s var(--ease); }
.socials a:hover { background: var(--grad-red); border-color: transparent; transform: translateY(-3px); }
.socials a:hover img { opacity: 1; }

.footer-col h4 { font-size: .95rem; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col p { color: var(--text-muted); font-size: .89rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--red-bright); }
.footer-col p { margin-bottom: 16px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p, .footer-bottom a { color: var(--text-dim); font-size: .82rem; }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--red-bright); }

/* Botón subir */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--grad-red);
  box-shadow: 0 8px 24px rgba(255, 40, 30, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 12. ANIMACIONES ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
