/* main.css – Estilos del sitio */
/* Derechos de autor © y ® Mario Rodríguez Cárdenas (c)&(R). México 2026. generico@aztec-tech.com · www.aztec-tech.com · Todos los derechos reservados. */

/* ========================================================================== */
/* VARIABLES CSS (Design Tokens)                                             */
/* ========================================================================== */
:root {
  /* Colores de fondo */
  --bg-0: #07090C;
  --bg-1: #0B0F14;
  --panel: #111826;
  --line: #233044;

  /* Colores de texto */
  --text-0: #E6EDF6;
  --text-1: #B9C4D6;
  --text-2: #7F8CA3;

  /* Colores de acento verde */
  --g-0: #3CFF8F;
  --g-1: #14D96E;

  /* Colores de acento amarillo */
  --y-0: #FFD84D;
  --y-1: #FFB800;

  /* Sombras de resplandor (glow) */
  --glow-green-soft: 0 0 10px rgba(60,255,143,.35), 0 0 28px rgba(20,217,110,.18);
  --glow-green-strong: 0 0 18px rgba(60,255,143,.55), 0 0 48px rgba(20,217,110,.25);
  --glow-yellow-soft: 0 0 10px rgba(255,216,77,.28), 0 0 30px rgba(255,184,0,.15);
  --glow-yellow-strong: 0 0 18px rgba(255,216,77,.45), 0 0 52px rgba(255,184,0,.22);

  /* Radios de borde */
  --r-md: 16px;
  --r-lg: 22px;

  /* Tipografías */
  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --section-y: clamp(56px, 6vw, 96px);
}

/* ========================================================================== */
/* RESET Y BASE                                                              */
/* ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-0);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(60,255,143,.08), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(255,216,77,.06), transparent 58%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.has-ai-bg {
  background-image:
    radial-gradient(900px 500px at 15% 10%, rgba(60,255,143,.08), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(255,216,77,.06), transparent 58%),
    url("../assets/img/ai/backgrounds/bg-metal-glow-2560x1440.webp"),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  background-size: auto, auto, cover, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

/* Alto contraste */
body.is-contrast {
  --text-1: #D6E1F3;
  --text-2: #C7D4EA;
}

/* ========================================================================== */
/* TIPOGRAFÍA                                                                */
/* ========================================================================== */
a {
  color: var(--text-0);
  text-decoration: none;
  border-bottom: 1px solid rgba(60,255,143,.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  border-color: rgba(60,255,143,.60);
  box-shadow: var(--glow-green-soft);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 2.2vw + 1.3rem, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 1.6vw + 1.2rem, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 1.0vw + 1.1rem, 1.8rem);
}

p {
  margin: 0 0 16px 0;
  color: var(--text-1);
  line-height: 1.65;
}

.lead {
  font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem);
  color: var(--text-0);
  line-height: 1.45;
}

.small {
  font-size: .95rem;
  color: var(--text-2);
}

/* ========================================================================== */
/* LAYOUT                                                                    */
/* ========================================================================== */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: var(--section-y) 0;
}

.sectionTitle {
  margin: 0 0 8px 0;
  font-size: clamp(1.8rem, 1.6vw + 1.2rem, 2.6rem);
}

.sectionSubtitle {
  margin: 0 0 24px 0;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ========================================================================== */
/* ACCESIBILIDAD: SKIP LINK                                                  */
/* ========================================================================== */
.skipLink {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--g-0);
  color: var(--bg-0);
  padding: 8px 16px;
  text-decoration: none;
  border: none;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 100;
  transition: top 0.2s ease;
}

.skipLink:focus {
  top: 0;
}

/* ========================================================================== */
/* HEADER / NAVEGACIÓN                                                       */
/* ========================================================================== */
.siteHeader {
  background: rgba(7,9,12,.55);
  border-bottom: 1px solid rgba(35,48,68,.65);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.headerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(60,255,143,.9), rgba(20,217,110,.2));
  box-shadow: var(--glow-green-soft);
  border: 1px solid rgba(60,255,143,.18);
  display: block;
}

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

.brand__text strong {
  font-weight: 900;
  font-size: 1.1rem;
}

.brand__sub {
  font-size: .95rem;
  color: var(--text-2);
}

.headerActions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.siteNav {
  display: none;
  gap: 16px;
}

@media (min-width: 980px) {
  .siteNav {
    display: flex;
  }
}

.navLink {
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.navLink:hover {
  border-bottom-color: var(--g-0);
  box-shadow: none;
}

/* Menú móvil (drawer) */
.navDrawer {
  border-top: 1px solid rgba(35,48,68,.65);
  background: rgba(7,9,12,.78);
  backdrop-filter: blur(14px);
}

.navDrawer__inner {
  padding: 16px 0 22px 0;
  display: grid;
  gap: 10px;
}

.navDrawer .navLink {
  display: block;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(35,48,68,.65);
  background: rgba(255,255,255,.02);
}

/* Botón hamburguesa */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(35,48,68,.95);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: background 0.2s ease;
}

.burger:hover {
  background: rgba(255,255,255,.05);
}

.burger span {
  width: 22px;
  height: 2px;
  background: rgba(230,237,246,.9);
  border-radius: 2px;
  display: block;
  transition: transform 0.2s ease;
}

@media (min-width: 980px) {
  .burger {
    display: none;
  }
}

/* ========================================================================== */
/* BOTONES                                                                   */
/* ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(35,48,68,.9);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color: var(--text-0);
  font-weight: 800;
  cursor: pointer;
  border-bottom: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary,
.btn--green {
  border-color: rgba(60,255,143,.28);
  box-shadow: var(--glow-green-soft);
}

.btn--primary:hover,
.btn--green:hover {
  border-color: rgba(60,255,143,.62);
  box-shadow: var(--glow-green-strong);
}

.btn--yellow {
  border-color: rgba(255,216,77,.22);
  box-shadow: var(--glow-yellow-soft);
}

.btn--yellow:hover {
  border-color: rgba(255,216,77,.55);
  box-shadow: var(--glow-yellow-strong);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

/* ========================================================================== */
/* TARJETAS (CARDS)                                                          */
/* ========================================================================== */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(35,48,68,.95);
  border-radius: var(--r-lg);
  padding: 18px;
}

.card--hover {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card--hover:hover {
  transform: translateY(-2px);
}

.card--glow-green {
  box-shadow: var(--glow-green-soft);
  border-color: rgba(60,255,143,.18);
}

.card--glow-yellow {
  box-shadow: var(--glow-yellow-soft);
  border-color: rgba(255,216,77,.14);
}

.card__title {
  margin: 0 0 12px 0;
  color: var(--text-0);
}

.card__text {
  margin: 0;
  color: var(--text-1);
}

/* ========================================================================== */
/* GRIDS                                                                     */
/* ========================================================================== */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.bento__item {
  grid-column: span 12;
}

@media (min-width: 820px) {
  .bento__item--6 {
    grid-column: span 6;
  }
  .bento__item--4 {
    grid-column: span 4;
  }
}

.grid2 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

.cards3 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================================================== */
/* HERO                                                                      */
/* ========================================================================== */
.hero {
  padding: var(--section-y) 0;
}

.hero__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
  }
}

.hero__kicker {
  font-size: .95rem;
  color: var(--g-0);
  font-weight: 700;
  margin: 0 0 12px 0;
}

.hero__title {
  margin: 0 0 18px 0;
}

.hero__lead {
  margin: 0 0 24px 0;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.hero__media {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(35,48,68,.95);
  box-shadow: 0 0 28px rgba(60,255,143,.12);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================================================== */
/* MEDIA CARD                                                                */
/* ========================================================================== */
.mediaCard {
  display: grid;
  gap: 14px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(35,48,68,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.mediaCard__img {
  position: relative;
  height: 240px;
  border-bottom: 1px solid rgba(35,48,68,.95);
  overflow: hidden;
}

.mediaCard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.mediaCard__body {
  padding: 18px;
}

.mediaCard__title {
  margin: 0 0 12px 0;
}

.mediaCard__text {
  margin: 0 0 16px 0;
}

/* ========================================================================== */
/* INFO CARD                                                                 */
/* ========================================================================== */
.infoCard {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(35,48,68,.95);
  border-radius: var(--r-lg);
  padding: 24px;
}

.infoCard__title {
  margin: 0 0 12px 0;
  color: var(--text-0);
  font-size: 1.5rem;
}

.infoCard__text {
  margin: 0 0 16px 0;
  color: var(--text-1);
}

/* ========================================================================== */
/* MINI CARD                                                                 */
/* ========================================================================== */
.miniCard {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(35,48,68,.8);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.miniCard:hover {
  transform: translateY(-2px);
  border-color: rgba(60,255,143,.3);
}

.miniCard__title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--text-0);
}

.miniCard__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-2);
}

/* ========================================================================== */
/* BANNER                                                                    */
/* ========================================================================== */
.banner {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(35,48,68,.95);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.banner__img {
  height: 220px;
  overflow: hidden;
}

.banner__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(60,255,143,.14), transparent 55%),
    radial-gradient(900px 300px at 80% 20%, rgba(255,216,77,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.70));
}

.banner__content {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
}

.banner__body {
  padding: 18px;
  position: relative;
  z-index: 1;
}

.banner__title {
  margin: 0 0 8px 0;
}

.banner__text {
  margin: 0 0 16px 0;
}

/* ========================================================================== */
/* CHIPS (FILTROS)                                                           */
/* ========================================================================== */
.chips,
.chipRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px 0;
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35,48,68,.95);
  background: rgba(255,255,255,.02);
  color: var(--text-0);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.chip:hover {
  border-color: rgba(60,255,143,.4);
  background: rgba(60,255,143,.05);
}

.chip--yellow {
  border-color: rgba(255,216,77,.28);
  box-shadow: var(--glow-yellow-soft);
}

.chip.is-active {
  border-color: rgba(60,255,143,.55);
  box-shadow: var(--glow-green-soft);
  background: rgba(60,255,143,.08);
}

/* ========================================================================== */
/* FORMULARIOS                                                               */
/* ========================================================================== */
.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-weight: 800;
  color: var(--text-1);
}

.input,
textarea.input {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(35,48,68,.95);
  background: rgba(0,0,0,.18);
  color: var(--text-0);
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
textarea.input:focus {
  border-color: rgba(60,255,143,.55);
  box-shadow: var(--glow-green-soft);
}

textarea.input {
  resize: vertical;
  min-height: 100px;
}

/* ========================================================================== */
/* FOOTER                                                                    */
/* ========================================================================== */
.siteFooter {
  border-top: 1px solid rgba(35,48,68,.65);
  padding: 32px 0 48px 0;
  background: rgba(0,0,0,.18);
}

.footerRow {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footerCopy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.footerCopy p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.footerNav {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

@media (min-width: 640px) {
  .footerNav {
    flex-direction: row;
  }
}

.footerNav a {
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.footerNav a:hover {
  border-bottom-color: var(--g-0);
}

/* ========================================================================== */
/* REVEAL ON SCROLL (ANIMACIONES)                                            */
/* ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================== */
/* HOVER EXPANSIONS (IMÁGENES)                                               */
/* ========================================================================== */
.hover-expand-16x9 {
  overflow: hidden;
  transition: height 1s ease;
  border-radius: 18px;
}

.hover-expand-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: object-fit 1s ease;
}

.hover-expand-16x9.is-expanded {
  height: var(--expand-h);
}

.hover-expand-16x9.is-expanded img {
  object-fit: contain;
  background: rgba(0,0,0,.12);
}

/* ========================================================================== */
/* GALERÍA IA (RENDERS) - MINIATURAS EXPANDIBLES                             */
/* ========================================================================== */
.iaGallery {
  padding: var(--section-y) 0;
}

.iaGallery__strip {
  display: flex;
  gap: 12px;
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
}

.iaGallery__item {
  flex: 1 1 0;
  min-width: 0;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  transition: all 1s ease;
  background: rgba(0,0,0,.25);
  cursor: pointer;
}

.iaGallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: object-fit 1s ease;
}

/* Estado hover: ocultar no activas */
.iaGallery__strip.is-hovering .iaGallery__item:not(.is-active) {
  flex: 0 0 0;
  width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Item activo expandido */
.iaGallery__strip.is-hovering .iaGallery__item.is-active {
  flex: 1 0 100%;
}

.iaGallery__strip.is-hovering .iaGallery__item.is-active img {
  object-fit: contain;
  background: rgba(0,0,0,.55);
}

/* Responsive */
@media (max-width: 640px) {
  .iaGallery__item {
    height: 76px;
  }
}

/* ========================================================================== */
/* IMÁGENES OFICIALES (DOCUMENTOS PDF)                                       */
/* ========================================================================== */
.officialGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.officialItem {
  grid-column: span 12;
  margin: 0;
}

@media (min-width: 900px) {
  .officialItem {
    grid-column: span 6;
  }
}

.officialItem img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(35,48,68,.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.officialItem:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(60,255,143,.15);
}

/* ========================================================================== */
/* LIGHTBOX (MODAL PARA IMÁGENES)                                            */
/* ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  z-index: 9999;
  padding: 22px;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__panel {
  width: min(1200px, 100%);
  max-height: 90vh;
  border-radius: 26px;
  overflow: auto;
  border: 1px solid rgba(35,48,68,.95);
  background: rgba(7,9,12,.95);
  box-shadow: 0 0 40px rgba(60,255,143,.12);
}

.lightbox__panel img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(35,48,68,.65);
  background: rgba(0,0,0,.5);
}

.lightbox__btn {
  border: 1px solid rgba(35,48,68,.95);
  background: rgba(255,255,255,.03);
  color: var(--text-0);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

.lightbox__btn:hover {
  background: rgba(255,255,255,.08);
}

/* ========================================================================== */
/* HERO FIGURE (IMAGEN OFICIAL POR PÁGINA)                                   */
/* ========================================================================== */
.heroFigure {
  margin: 18px 0 26px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(0,255,140,.12), rgba(0,0,0,.55));
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.heroFigure img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(0);
  transition: transform .25s ease;
}

.heroFigure:hover img {
  transform: scale(1.025);
}

.heroCaption {
  padding: 12px 14px;
  font-size: .95rem;
  line-height: 1.35;
  color: rgba(255,255,255,.82);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

body.is-contrast .heroFigure {
  border-color: rgba(255