/* ================================================================
   STYLES.CSS — A-Society Soluciones Tecnológicas
   ================================================================
   CÓMO MODIFICAR COLORES:
   Busca la sección ":root" al inicio del archivo.
   Ahí están todas las variables de color. Cámbialas fácilmente.

   PALETA USADA:
   - Azul principal:  #0F5FAF  (color predominante)
   - Verde acento:    #A6D42F  (para detalles y highlights)
   - Negro:           #000000  (header y fondos oscuros)
   - Blanco:          #FFFFFF  (textos sobre fondos oscuros)
   ================================================================ */


/* ----------------------------------------------------------------
   VARIABLES CSS (Custom Properties)
   Cambia estos valores para actualizar todos los colores del sitio
   ---------------------------------------------------------------- */
:root {
  /* ——— COLORES PRINCIPALES ——— */
  --color-blue:        #0F5FAF;   /* Azul principal (predominante) */
  --color-blue-dark:   #0a4a8a;   /* Azul oscuro (hover de botones) */
  --color-blue-light:  #1a74cc;   /* Azul claro (gradientes) */
  --color-green:       #A6D42F;   /* Verde acento (del brochure) */
  --color-green-dark:  #8ab827;   /* Verde más oscuro */
  --color-black:       #000000;   /* Negro puro (header) */
  --color-white:       #FFFFFF;   /* Blanco puro */

  /* ——— FONDOS ——— */
  --bg-dark:     #060d1a;         /* Fondo oscuro de secciones alternas */
  --bg-medium:   #0d1f38;         /* Fondo medio azul oscuro */
  --bg-light:    #f4f7fb;         /* Fondo claro para secciones blancas */
  --bg-card:     #0d1f38;         /* Fondo de tarjetas oscuras */

  /* ——— TEXTOS ——— */
  --text-primary:   #e8eef7;      /* Texto principal (blanco cálido) */
  --text-secondary: #8ca5c5;      /* Texto secundario (gris azulado) */
  --text-dark:      #0d1a2e;      /* Texto oscuro para secciones claras */
  --text-dark-sec:  #4a5568;      /* Texto secundario en sección clara */

  /* ——— GRADIENTES ——— */
  /* Gradiente principal: azul dominante con toque verde */
  --gradient-main:   linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 60%, var(--color-blue-light) 100%);
  /* Gradiente para botones y acentos */
  --gradient-accent: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 100%);
  /* Gradiente para hero de fondo */
  --gradient-hero:   linear-gradient(160deg, #020810 0%, #061428 40%, #0a2545 70%, #061428 100%);

  /* ——— TIPOGRAFÍAS ——— */
  --font-display: 'Bebas Neue', sans-serif;   /* Fuente de títulos grandes */
  --font-body:    'DM Sans', sans-serif;      /* Fuente del cuerpo */

  /* ——— ESPACIADO Y BORDES ——— */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  30px;

  /* ——— SOMBRAS ——— */
  --shadow-blue:  0 8px 32px rgba(15, 95, 175, 0.4);
  --shadow-green: 0 8px 32px rgba(166, 212, 47, 0.3);
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.4);

  /* ——— TRANSICIONES ——— */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow:   0.6s ease;

  /* ——— ANCHO MÁXIMO DEL CONTENEDOR ——— */
  --container-max: 1200px;
}


/* ----------------------------------------------------------------
   RESET Y BASE
   Elimina estilos por defecto del navegador para partir desde cero
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;   /* El padding no agranda el elemento */
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;        /* Scroll suave al hacer clic en links */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;             /* Evita scroll horizontal no deseado */
  line-height: 1.6;
}

/* Quita el estilo de las listas */
ul { list-style: none; }

/* Quita el subrayado de los links */
a { text-decoration: none; color: inherit; }

/* Las imágenes no se desbordan de su contenedor */
img { max-width: 100%; display: block; }

/* Botones sin estilo por defecto */
button { border: none; cursor: pointer; font-family: var(--font-body); }


/* ----------------------------------------------------------------
   CONTENEDOR
   Limita el ancho del contenido y lo centra horizontalmente
   ---------------------------------------------------------------- */
.container {
  width: 90%;                     /* 90% del ancho de pantalla */
  max-width: var(--container-max); /* Pero no más de 1200px */
  margin: 0 auto;                 /* Centrado */
}


/* ----------------------------------------------------------------
   CLASES DE SECCIÓN REUTILIZABLES
   ---------------------------------------------------------------- */

/* Padding vertical uniforme para todas las secciones */
.section {
  padding: 100px 0;
}

/* Sección con fondo oscuro alternativo */
.section--dark {
  background: var(--bg-medium);
}

/* Encabezado de sección (tag + título) */
.section__header {
  text-align: center;
  margin-bottom: 60px;
}

/* Pequeña etiqueta encima del título */
.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-green);
  border: 1px solid var(--color-green);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* Título de sección */
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);   /* Tamaño fluido */
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1.1;
}

/* Color acento para partes del título */
.text--accent {
  color: var(--color-green);
}


/* ----------------------------------------------------------------
   BOTONES
   Los botones del sitio tienen variantes: primario, outline, full
   ---------------------------------------------------------------- */

/* Botón base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo al hover (pseudo-elemento) */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

/* Botón primario: fondo azul sólido */
.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);          /* Sube ligeramente al hover */
  box-shadow: 0 12px 40px rgba(15, 95, 175, 0.5);
}

/* Botón outline: borde visible, fondo transparente */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--color-green);
  color: var(--color-green);
  transform: translateY(-2px);
}

/* Variante full: ocupa todo el ancho del contenedor */
.btn--full {
  width: 100%;
  justify-content: center;
}


/* ================================================================
   HEADER / NAVEGACIÓN
   ================================================================ */
.header {
  position: fixed;           /* Siempre visible al hacer scroll */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;             /* Por encima de todo el contenido */
  background: var(--color-black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

/* Clase que JS agrega al hacer scroll — agrega sombra */
.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Flex container de la barra de navegación */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo en el nav */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Imagen del logo — ajusta height para cambiar tamaño */
.nav__logo-img {
  height: 130px;
  width: auto;
  object-fit: contain;
}

/* Lista de ítems del menú */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Link individual del menú */
.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  letter-spacing: 0.3px;
}

/* Hover del link: fondo azul + texto blanco */
.nav__link:hover,
.nav__link.active {
  background: var(--color-blue);   /* Fondo azul al pasar el mouse */
  color: var(--color-white);
}

/* Botón hamburguesa — oculto en desktop */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.nav__hamburger:hover { background: rgba(255,255,255,0.1); }

/* Líneas del ícono hamburguesa */
.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Animación: convierte las líneas en una X cuando el menú está abierto */
.nav__hamburger.open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ================================================================
   SECCIÓN HERO
   ================================================================ */
.hero {
  min-height: 100vh;              /* Al menos la altura completa de pantalla */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: 70px;              /* Compensar el header fijo */
}

/* Partículas de fondo (posicionadas por JS) */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;           /* No bloquea clics */
}

/* Partícula individual (generada por JS) */
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}

/* Líneas decorativas de circuito */
.hero__circuit {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}
.hero__circuit--1 {
  /* Círculo grande con borde azul */
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 80px solid var(--color-blue);
  top: -200px; left: -200px;
}
.hero__circuit--2 {
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid var(--color-green);
  bottom: -150px; right: -100px;
}

/* Contenido central del hero */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

/* Etiqueta pequeña encima del título */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 24px;
}
.hero__tag::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--color-green);
}

/* Título principal del hero — fuente display grande */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.0;
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 16px;
}

/* Acento verde en el título */
.hero__title--accent {
  color: var(--color-green);
  text-shadow: 0 0 30px rgba(166, 212, 47, 0.5);
}

/* Acento azul claro en el título */
.hero__title--accent2 {
  color: var(--color-blue-light);
}

/* Slogan en cursiva */
.hero__slogan {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

/* Descripción debajo del slogan */
.hero__description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Contenedor de botones */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

/* Bloque de estadísticas */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-blue-light);
  letter-spacing: 2px;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Línea divisora entre estadísticas */
.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Indicador de scroll hacia abajo */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
  z-index: 2;
}

/* Flecha animada */
.scroll__arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--color-green);
  border-bottom: 2px solid var(--color-green);
  transform: rotate(45deg);
}


/* ================================================================
   SECCIÓN NOSOTROS
   ================================================================ */
.nosotros {
  background: var(--bg-dark);
}

/* Grid de dos columnas: texto y tarjetas */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Texto introductorio */
.nosotros__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.nosotros__intro strong {
  color: var(--color-green);
  font-weight: 700;
}

/* Marco de la imagen */
.nosotros__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  background: var(--bg-medium);
  border: 1px solid rgba(15, 95, 175, 0.3);
}

.nosotros__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.placeholder__icon { font-size: 2.5rem; }

/* Tarjetas de Misión y Visión */
.nosotros__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tarjeta individual */
.mv-card {
  background: var(--bg-medium);
  border: 1px solid rgba(15, 95, 175, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Línea acento izquierda */
.mv-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 3px 0 0 3px;
}

.mv-card:hover {
  border-color: var(--color-blue);
  transform: translateX(6px);
}

.mv-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.mv-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--color-blue-light);
  margin-bottom: 10px;
}

.mv-card__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ================================================================
   SECCIÓN SERVICIOS
   ================================================================ */

/* Grid de 4 tarjetas (2x2 en escritorio) */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Tarjeta de servicio */
.service-card {
  background: var(--bg-dark);
  border: 1px solid rgba(15, 95, 175, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Efecto hover: borde azul y sube ligeramente */
.service-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-6px);
  box-shadow: var(--shadow-blue);
}

/* Brillo de color en hover (glow) */
.service-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(15,95,175,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.service-card:hover .service-card__glow { opacity: 1; }

/* Número grande decorativo */
.service-card__number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(15, 95, 175, 0.15);
  position: absolute;
  top: 16px; right: 24px;
  letter-spacing: 2px;
  line-height: 1;
}

/* Ícono del servicio */
.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

/* Título de la tarjeta */
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--color-blue-light);
  margin-bottom: 16px;
}

/* Lista de ítems dentro de la tarjeta */
.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

/* Bullet personalizado: punto verde */
.service-card__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-size: 0.85rem;
}


/* ================================================================
   SECCIÓN TECNOLOGÍAS
   ================================================================ */
.tecnologias {
  background: var(--bg-dark);
}

/* Grid de iconos de tecnología */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Ítem de tecnología */
.tech-item {
  background: var(--bg-medium);
  border: 1px solid rgba(15, 95, 175, 0.2);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: default;
  /* TRANSICIÓN SUAVE para el efecto hover */
  transition: background var(--transition-normal),
              border-color var(--transition-normal),
              transform var(--transition-normal),
              box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* HOVER: fondo azul con transición suave */
.tech-item:hover {
  background: var(--color-blue);         /* Fondo cambia a azul */
  border-color: var(--color-blue-light);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-blue);
}

/* Cambia el color del texto en hover */
.tech-item:hover .tech-item__desc {
  color: rgba(255,255,255,0.75);
}

.tech-item__icon {
  font-size: 2.4rem;
  display: block;
}

.tech-item__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: block;
}

.tech-item__desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
  transition: color var(--transition-normal);
}


/* ================================================================
   SECCIÓN PROYECTOS
   ================================================================ */

/* Grid de 3 tarjetas en fila */
.proyectos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Tarjeta de proyecto */
.project-card {
  background: var(--bg-dark);
  border: 1px solid rgba(15, 95, 175, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  border-color: var(--color-green);
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
}

/* Etiqueta de categoría */
.project-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-green);
  padding: 4px 14px;
  background: rgba(166, 212, 47, 0.1);
  border-bottom: 1px solid rgba(166, 212, 47, 0.2);
  width: 100%;
}

/* Área visual de la tarjeta */
.project-card__visual {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-medium) 0%, rgba(15,95,175,0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 16px rgba(15,95,175,0.4));
}

/* Cuerpo de la tarjeta */
.project-card__body {
  padding: 24px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Tags de tecnologías usadas */
.project-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(15, 95, 175, 0.2);
  color: var(--color-blue-light);
  border: 1px solid rgba(15, 95, 175, 0.3);
}


/* ================================================================
   SECCIÓN CONTACTO
   ================================================================ */
.contacto {
  background: var(--bg-dark);
}

/* Grid de dos columnas: info + formulario */
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Ítems de información de contacto */
.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Link de contacto individual */
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-medium);
  border: 1px solid rgba(15, 95, 175, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.contact-item:hover {
  border-color: var(--color-blue);
  transform: translateX(6px);
  box-shadow: var(--shadow-blue);
}

.contact-item__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item__label {
  font-size: 0.72rem;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.contact-item__value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ——— FORMULARIO DE CONTACTO ——— */
.contact-form {
  background: var(--bg-medium);
  border: 1px solid rgba(15, 95, 175, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 28px;
}

/* Grupo de campo (label + input) */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* Input, select y textarea */
.form-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid rgba(15, 95, 175, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

/* Cuando el input está en foco: borde azul */
.form-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(15, 95, 175, 0.15);
}

/* Color del placeholder */
.form-input::placeholder { color: rgba(140, 165, 197, 0.5); }

/* Opciones del select con fondo oscuro */
.form-select option { background: var(--bg-dark); }

/* Textarea con altura fija */
.form-textarea {
  height: 120px;
  resize: vertical;   /* El usuario puede cambiar el alto */
}

/* Mensaje de éxito tras enviar formulario */
.form-success {
  display: none;                  /* Oculto por defecto */
  margin-top: 16px;
  padding: 14px;
  background: rgba(166, 212, 47, 0.1);
  border: 1px solid rgba(166, 212, 47, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-green);
  font-size: 0.9rem;
  text-align: center;
}

/* JS agrega esta clase para mostrar el mensaje */
.form-success.visible { display: block; }


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--color-black);
  border-top: 1px solid rgba(15, 95, 175, 0.2);
  padding: 60px 0 30px;
}

/* Grid del footer: 4 columnas */
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 16px;
}

/* Links del footer */
.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--color-blue-light); }

/* Botones de redes sociales */
.footer__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(15, 95, 175, 0.15);
  border: 1px solid rgba(15, 95, 175, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-blue-light);
  transition: all var(--transition-normal);
  letter-spacing: 0.5px;
}
.social-btn:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Línea divisora */
.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 28px;
}

/* Parte inferior del footer */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer__bottom a {
  color: var(--color-blue-light);
  transition: color var(--transition-fast);
}
.footer__bottom a:hover { color: var(--color-green); }


/* ================================================================
   BOTÓN VOLVER ARRIBA
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  /* Oculto por defecto — JS lo hace visible */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 900;
}

/* Clase que JS agrega para mostrar el botón */
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-green);
  transform: translateY(-3px);
}


/* ================================================================
   ANIMACIONES DE SCROLL (reveal)
   JS añade la clase .revealed para activar las animaciones
   ================================================================ */

/* Estado inicial: elementos invisibles */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Estado final: elementos visibles cuando JS añade .revealed */
.reveal-up.revealed,
.reveal-fade.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: none;
}

/* Delays escalonados para animar elementos uno por uno */
.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.30s !important; }
.delay-3 { transition-delay: 0.45s !important; }
.delay-4 { transition-delay: 0.60s !important; }


/* ================================================================
   KEYFRAMES (animaciones CSS)
   ================================================================ */

/* Partículas flotando hacia arriba */
@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

/* Indicador de scroll rebotando */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}


/* ================================================================
   RESPONSIVE — TABLETS (max 1024px)
   ================================================================ */
@media (max-width: 1024px) {

  /* Tecnologías: de 4 columnas a 2 */
  .tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: de 4 columnas a 2 */
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}


/* ================================================================
   RESPONSIVE — MÓVIL (max 768px)
   ================================================================ */
@media (max-width: 768px) {

  /* Secciones con menos padding en móvil */
  .section { padding: 70px 0; }

  /* ——— MENÚ MÓVIL ——— */

  /* Mostrar el botón hamburguesa */
  .nav__hamburger {
    display: flex;
  }

  /* El menú se convierte en un panel desplegable */
  .nav__menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Panel oculto por defecto */
    position: fixed;
    top: 70px;                     /* Debajo del header */
    left: 0; right: 0;
    background: var(--color-black);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    /* Animación de aparición */
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  /* Clase que JS agrega para abrir el menú */
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  /* ——— HERO ——— */
  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero__actions { gap: 12px; }
  .hero__stats { gap: 20px; }

  /* ——— NOSOTROS: de 2 columnas a 1 ——— */
  .nosotros__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ——— SERVICIOS: de 2 columnas a 1 ——— */
  .servicios__grid {
    grid-template-columns: 1fr;
  }

  /* ——— TECNOLOGÍAS: de 4 a 2 columnas ——— */
  .tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ——— PROYECTOS: de 3 columnas a 1 ——— */
  .proyectos__grid {
    grid-template-columns: 1fr;
  }

  /* ——— CONTACTO: de 2 columnas a 1 ——— */
  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ——— FOOTER: todo en 1 columna ——— */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Ocultar circuitos decorativos en móvil */
  .hero__circuit { display: none; }
}


/* ================================================================
   RESPONSIVE — MÓVIL PEQUEÑO (max 480px)
   ================================================================ */
@media (max-width: 480px) {

  /* Tecnologías en 1 columna en pantallas muy pequeñas */
  .tech__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .tech-item { padding: 20px 14px; }

  /* Botones apilados */
  .hero__actions {
    flex-direction: column;
  }
  .btn { width: 100%; justify-content: center; }

  /* Estadísticas en columna */
  .hero__stats {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat__divider { display: none; }

  /* Botón volver arriba más pequeño en móvil */
  .back-to-top { bottom: 20px; right: 20px; }
}
