/* ========================================= */
/* FUENTES LOCALES                           */
/* ========================================= */
@font-face {
  font-family: "Stranger";
  src: url("fonts/benguiat.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ========================================= */
/* VARIABLES                                 */
/* ========================================= */
:root {
  --st-rojo-neon: #ff0015;
  --st-rojo-neon-suave: rgba(255, 0, 21, 0.15);
  --cian-glitch: #00fff0;
  --magenta-glitch: #ff00c8;
  --fondo-noche: #0b0f19;
  --fondo-noche-claro: #1c2336;
  --fondo-panel: rgba(10, 14, 24, 0.72);
  --panel-cristal: rgba(28, 35, 54, 0.55);
  --texto-claro: #f1f5f9;
  --texto-azulado: #94a3b8;
  --texto-apagado: #cbd5e1;
  --borde-suave: rgba(255, 255, 255, 0.12);
  --brillo-neon:
    0 0 10px rgba(255, 0, 21, 0.45), 0 0 20px rgba(255, 0, 21, 0.25);
  --sombra-panel: 0 16px 40px rgba(0, 0, 0, 0.45);
  --transicion: all 0.3s ease-in-out;
}

/* ========================================= */
/* RESET                                     */
/* ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--fondo-noche);
  color: var(--texto-azulado);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.6;
  cursor: crosshair;
  background-image:
    linear-gradient(rgba(11, 15, 25, 0.84), rgba(28, 35, 54, 0.88)),
    url("assets/image/Fondo_página.png");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

img {
  max-width: 100%;
  display: block;
}

a,
button {
  cursor: pointer;
}

/* ========================================= */
/* TIPOGRAFÍA                                */
/* ========================================= */
h1,
h2,
.logotipo {
  font-family: "Stranger", "Times New Roman", serif;
  color: transparent;
  -webkit-text-stroke: 1px var(--st-rojo-neon);
  letter-spacing: 3px;
  text-shadow: var(--brillo-neon);
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: 1px;
  color: var(--st-rojo-neon);
}

p {
  color: var(--texto-azulado);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--texto-claro);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.eyebrow.centrado {
  display: block;
  text-align: center;
}

.texto-destacado {
  color: var(--texto-claro);
  font-size: 1.1rem;
  max-width: 720px;
}

.mensaje-sistema {
  color: var(--texto-apagado);
  font-size: 1rem;
  line-height: 1.75;
}

.mensaje-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ========================================= */
/* NAVEGACIÓN                                */
/* ========================================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 5%;
  background: rgba(11, 15, 25, 0.92);
  border-bottom: 1px solid rgba(255, 0, 21, 0.35);
  box-shadow: 0 2px 18px rgba(255, 0, 21, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.logotipo {
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--texto-claro);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transicion);
  padding: 0.4rem 0;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--st-rojo-neon);
  transition: var(--transicion);
  box-shadow: var(--brillo-neon);
}

nav ul li a:hover::after,
nav ul li a.activo::after {
  width: 100%;
}

nav ul li a:hover,
nav ul li a.activo {
  color: var(--st-rojo-neon);
}

/* ========================================= */
/* LAYOUT                                    */
/* ========================================= */
.contenedor {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.titulo-seccion {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 3.3rem;
}

.titulo-seccion.izquierda {
  text-align: left;
}

.titulo-gigante {
  font-size: 4rem;
  margin-bottom: 0.8rem;
}

.subtitulo-centrado {
  text-align: center;
  margin: 0 auto 4rem;
  color: var(--texto-claro);
  font-size: 1.15rem;
  max-width: 800px;
}

/* ========================================= */
/* HERO                                      */
/* ========================================= */
.portada {
  min-height: 88vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 0 5%;
}

.overlay-hero {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 0, 21, 0.12), transparent 45%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.portada h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.hero-texto {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-size: 1.2rem;
  color: var(--texto-claro);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.botones-portada {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================= */
/* BOTONES                                   */
/* ========================================= */
.boton {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: 2px solid var(--st-rojo-neon);
  color: var(--texto-claro);
  background: rgba(255, 0, 21, 0.08);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transicion);
  text-align: center;
  border-radius: 8px;
}

.boton:hover {
  background: var(--st-rojo-neon);
  color: white;
  box-shadow: 0 0 22px rgba(255, 0, 21, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.boton-secundario {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--texto-claro);
  background: rgba(255, 255, 255, 0.04);
}

.boton-secundario:hover {
  background: var(--texto-claro);
  color: var(--fondo-noche);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.boton-pequeno {
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
}

.boton-ancho {
  width: 100%;
}

/* ========================================= */
/* PANELES / DATOS                           */
/* ========================================= */
.panel-datos {
  padding: 2.5rem;
  border: 1px solid rgba(255, 0, 21, 0.35);
  border-radius: 18px;
  background: var(--fondo-panel);
  box-shadow: var(--sombra-panel);
  backdrop-filter: blur(10px);
}

.panel-secundario {
  margin-top: 4rem;
}

.panel-datos-cabecera {
  margin-bottom: 2rem;
}

.titulo-panel {
  font-family: "Stranger", "Times New Roman", serif;
  color: transparent;
  -webkit-text-stroke: 1px var(--st-rojo-neon);
  text-shadow: var(--brillo-neon);
  letter-spacing: 2px;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.grid-datos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.dato {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--borde-suave);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.dato .valor {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--st-rojo-neon);
  margin-bottom: 0.35rem;
}

.dato .label {
  display: block;
  color: var(--texto-claro);
  font-size: 0.85rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.dato.alerta {
  border-color: rgba(255, 0, 21, 0.55);
  box-shadow: inset 0 0 20px rgba(255, 0, 21, 0.08);
}

/* ========================================= */
/* TARJETAS                                  */
/* ========================================= */
.cuadricula {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.tarjeta {
  background: var(--panel-cristal);
  border: 1px solid var(--borde-suave);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transicion);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.tarjeta:hover {
  border-color: rgba(255, 0, 21, 0.55);
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(255, 0, 21, 0.14);
}

.enlace-tarjeta {
  color: inherit;
  text-decoration: none;
}

.imagen-tarjeta {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: sepia(20%) hue-rotate(175deg) brightness(0.82);
  transition: var(--transicion);
  border-bottom: 2px solid transparent;
}

.tarjeta:hover .imagen-tarjeta {
  filter: sepia(0%) hue-rotate(0deg) brightness(1);
  border-bottom-color: var(--st-rojo-neon);
}

.contenido-tarjeta {
  padding: 2rem;
  flex-grow: 1;
}

.contenido-tarjeta h3 {
  margin-top: 0.2rem;
}

.contenido-tarjeta p {
  line-height: 1.7;
  margin-top: 1rem;
  color: var(--texto-apagado);
  text-align: left;
}

.tag-tarjeta {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 0, 21, 0.35);
  border-radius: 999px;
  color: var(--texto-claro);
  background: var(--st-rojo-neon-suave);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========================================= */
/* CTA / FRANJAS                             */
/* ========================================= */
.bloque-cta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 18px;
  background: var(--fondo-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--sombra-panel);
}

.cta-botones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.franja-info {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.franja-info-item {
  background: var(--fondo-panel);
  border: 1px solid var(--borde-suave);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--sombra-panel);
}

.franja-info-item h3 {
  margin-bottom: 0.6rem;
}

/* ========================================= */
/* CONTACTO                                  */
/* ========================================= */
.bloque-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.info-contacto,
.panel-formulario {
  padding: 2.2rem;
  border-radius: 18px;
  background: var(--fondo-panel);
  border: 1px solid var(--borde-suave);
  box-shadow: var(--sombra-panel);
  backdrop-filter: blur(10px);
}

.info-contacto {
  border-left: 4px solid var(--st-rojo-neon);
}

.info-contacto h3 {
  margin-bottom: 1rem;
}

.info-contacto p {
  margin-bottom: 0.9rem;
  color: var(--texto-claro);
  font-size: 1.05rem;
}

.separador-titulo {
  margin-top: 2rem;
}

.redes-sociales {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.etiqueta-formulario {
  color: var(--st-rojo-neon);
  font-family: "Stranger", serif;
  font-size: 1.15rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.7rem;
  margin-top: 1.2rem;
}

.etiqueta-formulario:first-of-type {
  margin-top: 0;
}

input,
textarea {
  width: 100%;
  padding: 1rem 1rem;
  margin-bottom: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transicion);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input:focus,
textarea:focus {
  border-color: var(--st-rojo-neon);
  outline: none;
  box-shadow: inset 0 0 10px rgba(255, 0, 21, 0.15);
  background: rgba(0, 0, 0, 0.55);
}

/* ========================================= */
/* INFRA LISTA                               */
/* ========================================= */
.lista-sectores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sector-item {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--borde-suave);
}

.sector-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

/* ========================================= */
/* IMÁGENES DE TARJETAS                      */
/* ========================================= */
.img-servidores {
  background-image: url("https://images.unsplash.com/photo-1591799264318-7e6ef8ddb7ea?auto=format&fit=crop&q=80");
}

.img-red {
  background-image: url("https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&q=80");
}

.img-clientes {
  background-image: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80");
}

.img-conductual {
  background-image: url("https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80");
}

.img-perimetral {
  background-image: url("https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&q=80");
}

.img-identidades {
  background-image: url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80");
}

.img-iso {
  background-image: url("https://images.unsplash.com/photo-1629654297299-c8506221ca97?auto=format&fit=crop&q=80");
}

.img-redes {
  background-image: url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80");
}

.img-hardware {
  background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80");
}

.img-bbdd {
  background-image: url("https://images.unsplash.com/photo-1555949963-ff9fe0c870eb?auto=format&fit=crop&q=80");
}

.img-cloud {
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80");
}

.img-fol {
  background-image: url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&q=80");
}

/* ========================================= */
/* ANIMACIONES                               */
/* ========================================= */
@keyframes flotarArriba {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animado {
  animation: flotarArriba 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.retraso-corto {
  animation-delay: 0.2s;
}

.retraso-medio {
  animation-delay: 0.4s;
}

.retraso-largo {
  animation-delay: 0.6s;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.glitch::before {
  color: transparent;
  -webkit-text-stroke: 1px var(--cian-glitch);
  transform: translate(-2px, -1px);
  opacity: 0.45;
  animation: glitchTop 2.2s infinite linear alternate-reverse;
}

.glitch::after {
  color: transparent;
  -webkit-text-stroke: 1px var(--magenta-glitch);
  transform: translate(2px, 1px);
  opacity: 0.3;
  animation: glitchBottom 1.9s infinite linear alternate-reverse;
}

@keyframes glitchTop {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, -1px);
  }
  40% {
    transform: translate(2px, 1px);
  }
  60% {
    transform: translate(-1px, 2px);
  }
  80% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes glitchBottom {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2px, 1px);
  }
  40% {
    transform: translate(-1px, 2px);
  }
  60% {
    transform: translate(1px, -2px);
  }
  80% {
    transform: translate(-2px, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
footer {
  text-align: center;
  padding: 2.4rem 5%;
  background: rgba(11, 15, 25, 0.94);
  border-top: 1px solid rgba(255, 0, 21, 0.35);
  margin-top: 4rem;
  color: var(--texto-azulado);
}

footer p {
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0.35rem 0;
}

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */
@media (min-width: 768px) {
  .cuadricula {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cuadricula {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .grid-datos {
    grid-template-columns: repeat(2, 1fr);
  }

  .bloque-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .lista-sectores {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    background-image:
      linear-gradient(rgba(11, 15, 25, 0.86), rgba(28, 35, 54, 0.9)),
      url("assets/image/Fondo_página_2.png");
    background-attachment: scroll;
    background-position: top center;
  }

  nav {
    flex-direction: column;
    padding: 1.3rem 1rem;
  }

  .logotipo {
    font-size: 2rem;
    text-align: center;
  }

  nav ul {
    gap: 0.65rem 1rem;
  }

  .portada {
    min-height: 78vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-texto {
    font-size: 1.05rem;
  }

  .titulo-seccion {
    font-size: 2.2rem;
  }

  .titulo-gigante {
    font-size: 2.45rem;
  }

  .contenedor {
    padding: 3rem 5%;
  }

  .panel-datos,
  .info-contacto,
  .panel-formulario,
  .bloque-cta {
    padding: 1.5rem;
  }

  .grid-datos {
    grid-template-columns: 1fr;
  }

  .franja-info {
    grid-template-columns: 1fr;
  }

  .bloque-contacto {
    grid-template-columns: 1fr;
  }

  .contenido-tarjeta {
    padding: 1.5rem;
  }

  .imagen-tarjeta {
    height: 200px;
  }
}
