/* ═══════════════════════════════════════════════════════════════
   Unira · AI & Automation Agency — styles.css
   ───────────────────────────────────────────────────────────────
   BRAND MANUAL COMPLIANCE:
   ▸ Paleta principal: Azul Tinta #010D2A · Cian IA #03B4E0
     Azul Eléctrico #0F45E5 · Índigo Pulso #3124D9
   ▸ Paleta soporte: Azul Noche #032F59 · Azul Marca #0053B4
     Gris Niebla #E9E9EA · Grafito #1C2333 · Blanco #FFFFFF
   ▸ Gradiente oficial: #03B4E0 → #0F45E5 → #3124D9 · 45°
   ▸ Tipografía: Sora (display/H1-H2) · Inter (body/UI)
   ▸ Jerarquía: H1 28pt · H2 18pt · Body 10-11pt · UI 8-9pt
   ▸ Estilo visual: minimalista, formas redondeadas, alto contraste,
     iconografía lineal/geométrica, uso controlado del degradado
   ▸ Tono: preciso · confiable · tecnológico · aplicado
═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES — Brand Manual Exact Values ─────────── */
:root {
  /* ── Paleta principal ── */
  --azul-tinta:    #010D2A;   /* Base de marca, fondos, textos premium */
  --cian-ia:       #03B4E0;   /* Acento principal, highlights, gradientes */
  --azul-electrico:#0F45E5;   /* Botones, énfasis, energía digital */
  --indigo-pulso:  #3124D9;   /* Cierre de gradiente, profundidad visual */

  /* ── Paleta de soporte ── */
  --azul-noche:    #032F59;   /* Fondos secundarios y paneles */
  --azul-marca:    #0053B4;   /* Links, micro acentos, UI */
  --gris-niebla:   #E9E9EA;   /* Fondos limpios, presentaciones */
  --grafito:       #1C2333;   /* Texto corrido, tono editorial */
  --blanco:        #FFFFFF;

  /* ── Gradiente oficial (45°) ── */
  --gradient: linear-gradient(45deg, var(--cian-ia), var(--azul-electrico), var(--indigo-pulso));
  --gradient-text: linear-gradient(45deg, var(--cian-ia) 0%, var(--azul-electrico) 50%, var(--indigo-pulso) 100%);

  /* ── Aliases semánticos ── */
  --bg:            var(--azul-tinta);       /* fondo principal */
  --bg-panel:      var(--azul-noche);       /* fondos secundarios */
  --bg-card:       rgba(3, 47, 89, 0.4);   /* tarjetas sobre fondo oscuro */
  --bg-card-hover: rgba(3, 47, 89, 0.65);
  --border:        rgba(0, 83, 180, 0.2);  /* bordes sutiles */
  --border-hover:  rgba(3, 180, 224, 0.45);
  --text-primary:  var(--blanco);
  --text-body:     rgba(233, 233, 234, 0.75); /* Gris Niebla con opacidad */
  --text-muted:    rgba(233, 233, 234, 0.45);
  --accent:        var(--cian-ia);         /* acento principal */
  --accent-dim:    rgba(3, 180, 224, 0.1);
  --accent-glow:   rgba(3, 180, 224, 0.2);
  --btn-color:     var(--azul-electrico);  /* botones primarios */
  --btn-hover:     var(--indigo-pulso);
  --danger:        #E53E5B;

  /* ── Tipografía — Brand Manual ── */
  --font-display:  'Sora', sans-serif;     /* H1, H2, display, logo */
  --font-body:     'Inter', sans-serif;    /* UI, body, labels */

  /* ── Escala tipográfica según manual ── */
  --text-h1:    clamp(2rem, 5.5vw, 3.5rem);  /* portadas / hero */
  --text-h2:    clamp(1.5rem, 3.5vw, 2.4rem); /* secciones */
  --text-h3:    1.05rem;
  --text-body:  0.9rem;   /* 10-11pt → ~0.9rem */
  --text-ui:    0.72rem;  /* 8-9pt → ~0.72rem */

  /* ── Espaciado ── */
  --space-section: 7rem;
  --space-lg: 3.5rem;
  --space-md: 2rem;
  --space-sm: 1rem;

  /* ── Transiciones ── */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.24s var(--ease);
  --t-slow: 0.5s var(--ease);

  /* ── Radios (formas redondeadas según manual) ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

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

body {
  background: var(--azul-tinta);
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: var(--azul-tinta); }
::-webkit-scrollbar-thumb  {
  background: var(--cian-ia);
  border-radius: 2px;
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section label — eyebrow style per brand manual */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cian-ia);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--blanco);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: var(--text-body);
  color: var(--text-body);
  max-width: 540px;
  line-height: 1.85;
}

.section-body {
  font-size: var(--text-body);
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.section-body strong { color: var(--blanco); font-weight: 600; }

.section-header { margin-bottom: var(--space-lg); }

/* ── BUTTONS ─────────────────────────────────────────────────
   Per manual: Azul Eléctrico para botones
─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.82rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-position 0.4s var(--ease), color var(--t), box-shadow var(--t), transform var(--t), border-color var(--t);
}

.btn-primary {
  background: linear-gradient(45deg, var(--azul-electrico) 0%, var(--indigo-pulso) 50%, var(--azul-electrico) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--blanco);
}
.btn-primary:hover {
  background-position: 0% 0;
  box-shadow: 0 8px 32px rgba(15, 69, 229, 0.45);
  transform: translateY(-2px);
}
.btn-primary:focus-visible { outline: 2px solid var(--cian-ia); outline-offset: 4px; }

.btn-ghost {
  background: transparent;
  color: var(--blanco);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--cian-ia);
  color: var(--cian-ia);
  background: rgba(3, 180, 224, 0.06);
  transform: translateY(-2px);
}
.btn-ghost:focus-visible { outline: 2px solid var(--cian-ia); outline-offset: 4px; }

/* ── REVEAL ANIMATION ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ── KEYFRAMES ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatSvg {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(28px, -18px) scale(1.04); }
  66%      { transform: translate(-18px, 12px) scale(0.97); }
}
@keyframes gradientPan {
  0%,100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
@keyframes pillGlow {
  0%,100% { border-color: rgba(3,180,224,0.3); }
  50%      { border-color: rgba(3,180,224,0.65); box-shadow: 0 0 14px rgba(3,180,224,0.12); }
}


/* ════════════════════════════════════════════════════════════
   NAVIGATION
   Per manual: Azul Tinta fondo, logo blanco/color, links claros
════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background var(--t), border-color var(--t), padding var(--t);
}
nav.scrolled {
  background: rgba(1, 13, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo — wordmark in lowercase Sora per brand manual */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.logo-icon svg { display: block; width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--blanco);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--cian-ia);
  border-radius: 1px;
  transition: width var(--t);
}
.nav-links a:hover { color: var(--blanco); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: var(--text-ui);
  padding: 0.65rem 1.4rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--blanco);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile overlay + menu */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(1, 13, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 98;
}
.mobile-overlay.visible { display: block; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  position: fixed; inset: 0;
  background: var(--azul-tinta);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  transition: color var(--t);
}
.mobile-menu-close:hover { color: var(--blanco); }
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--t);
}
.mobile-nav-link:hover { color: var(--cian-ia); }


/* ════════════════════════════════════════════════════════════
   HERO
   Per manual: Azul Tinta fondo, gradiente como acento puntual,
   amplio espacio negativo, formas geométricas
════════════════════════════════════════════════════════════ */
#inicio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric grid — minimal, brand-consistent */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 83, 180, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 83, 180, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black 20%, transparent 100%);
}

/* Ambient gradient orbs — depth & atmosphere */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-orb--1 {
  width: 560px; height: 560px;
  background: var(--cian-ia);
  opacity: 0.07;
  top: -180px; left: -80px;
  animation: orbFloat 22s ease-in-out infinite;
}
.hero-orb--2 {
  width: 480px; height: 480px;
  background: var(--indigo-pulso);
  opacity: 0.08;
  top: 60px; right: -120px;
  animation: orbFloat 28s ease-in-out infinite reverse;
}
.hero-orb--3 {
  width: 360px; height: 360px;
  background: var(--azul-electrico);
  opacity: 0.05;
  bottom: 40px; left: 38%;
  animation: orbFloat 18s 5s ease-in-out infinite;
}

.hero-layout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 9rem 0 4rem;
}

.hero-content { flex: 1; }

.hero-eyebrow { margin-bottom: 2rem; animation: fadeUp 0.65s var(--ease) both; }
.eyebrow-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cian-ia);
  background: rgba(3, 180, 224, 0.06);
  border: 1px solid rgba(3, 180, 224, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  animation: pillGlow 3.5s 0.9s ease-in-out infinite;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--blanco);
  margin-bottom: 1.8rem;
  animation: fadeUp 0.65s 0.08s var(--ease) both;
}

/* Brand gradient applied to the hero em — animated per brand guidelines */
h1 em {
  font-style: normal;
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientPan 5s ease-in-out infinite;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 480px;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.65s 0.16s var(--ease) both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.65s 0.24s var(--ease) both;
}

/* Hero SVG */
.hero-visual {
  width: 400px;
  flex-shrink: 0;
  opacity: 0.65;
  pointer-events: none;
  animation: floatSvg 7s ease-in-out infinite;
}

/* Stats bar — Gris Niebla on dark, brand accurate */
.hero-stats-bar {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: rgba(3, 47, 89, 0.25);
}
.hero-stats {
  display: flex;
  gap: 3.5rem;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
}
.hero-stat-num span { color: var(--cian-ia); }
.hero-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}


/* ════════════════════════════════════════════════════════════
   NOSOTROS / ABOUT
════════════════════════════════════════════════════════════ */
#nosotros {
  padding: var(--space-section) 0;
  background: var(--azul-tinta);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Values grid — brand personality */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
}
.value-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.value-item:hover {
  border-color: var(--cian-ia);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.value-icon {
  width: 28px; height: 28px;
  color: var(--cian-ia);
  margin-bottom: 0.6rem;
}
.value-icon svg { width: 100%; height: 100%; }
.value-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blanco);
  margin-bottom: 0.25rem;
}
.value-desc {
  font-size: var(--text-ui);
  color: var(--text-body);
  line-height: 1.65;
}

/* About card — Gris Niebla + Azul Noche per brand */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}
.about-card-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
}

.milestone-list { list-style: none; }
.milestone-list li {
  display: flex;
  gap: 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-body);
  color: var(--text-body);
  line-height: 1.6;
  align-items: flex-start;
}
.milestone-list li:last-child { border-bottom: none; padding-bottom: 0; }
.milestone-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--cian-ia);
  min-width: 44px;
  padding-top: 0.1rem;
}


/* ════════════════════════════════════════════════════════════
   SERVICIOS
   Per manual: fondo Azul Noche como panel secundario
════════════════════════════════════════════════════════════ */
#servicios {
  padding: var(--space-section) 0;
  background: var(--azul-noche);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: rgba(1, 13, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color var(--t), transform var(--t), background var(--t), box-shadow var(--t);
}
.service-card:hover {
  border-color: rgba(3, 180, 224, 0.5);
  background: rgba(1, 13, 42, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(1, 13, 42, 0.6), 0 0 30px rgba(3, 180, 224, 0.08);
}

/* Gradient top bar on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--t);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px; height: 44px;
  background: rgba(3, 180, 224, 0.08);
  border: 1px solid rgba(3, 180, 224, 0.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  color: var(--cian-ia);
  transition: background var(--t), border-color var(--t);
}
.service-icon svg { width: 20px; height: 20px; }
.service-card:hover .service-icon {
  background: rgba(3, 180, 224, 0.14);
  border-color: rgba(3, 180, 224, 0.4);
}

.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h3);
  color: var(--blanco);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.service-desc {
  font-size: var(--text-body);
  color: var(--text-body);
  line-height: 1.8;
}


/* ════════════════════════════════════════════════════════════
   PRODUCTOS
   Per manual: fondo Azul Tinta (principal), tarjetas Azul Noche
════════════════════════════════════════════════════════════ */
#productos {
  padding: var(--space-section) 0;
  background: var(--azul-tinta);
}

.products-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  transition: border-color var(--t), transform var(--t);
}
.product-row:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 8px 40px rgba(3, 180, 224, 0.06);
}
.product-row.reverse { }
.product-row.reverse .product-visual { order: -1; }

.product-tag {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cian-ia);
  margin-bottom: 0.6rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blanco);
  margin-bottom: 0.8rem;
}
.product-desc {
  font-size: var(--text-body);
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
}
.feature-chip {
  font-family: var(--font-body);
  font-size: calc(var(--text-ui) - 0.02rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cian-ia);
  background: rgba(3, 180, 224, 0.08);
  border: 1px solid rgba(3, 180, 224, 0.2);
  padding: 0.28rem 0.72rem;
  border-radius: 100px;
}

/* Product visual — minimal geometric mockup */
.product-visual {
  background: rgba(1, 13, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-visual-glow {
  position: absolute;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(3,180,224,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.product-visual-label {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(3, 180, 224, 0.06);
  letter-spacing: -0.04em;
  user-select: none;
  position: absolute;
}
.product-visual-icon {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
}
.product-visual-icon svg { width: 100%; height: 100%; }


/* ════════════════════════════════════════════════════════════
   EQUIPO
   Per manual: Azul Noche como panel, tarjetas con alto contraste
════════════════════════════════════════════════════════════ */
#equipo {
  padding: var(--space-section) 0;
  background: var(--azul-noche);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.team-card {
  background: rgba(1, 13, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.team-card:hover {
  border-color: rgba(3, 180, 224, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(1, 13, 42, 0.6), 0 0 30px rgba(3, 180, 224, 0.08);
}

.team-avatar {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-avatar-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--azul-tinta) 0%, var(--azul-noche) 100%);
}
/* Gradient dot decoration from brand icon */
.team-avatar::after {
  content: '';
  position: absolute;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(3,180,224,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.team-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blanco);
  opacity: 0.6;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.team-info { padding: 1.3rem; }
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blanco);
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cian-ia);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.team-bio {
  font-size: var(--text-body);
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.team-links { display: flex; gap: 0.5rem; }
.team-link {
  width: 28px; height: 28px;
  background: rgba(3, 180, 224, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.team-link:hover {
  background: rgba(3, 180, 224, 0.12);
  border-color: var(--cian-ia);
  color: var(--cian-ia);
}


/* ════════════════════════════════════════════════════════════
   CONTACTO
   Per manual: Azul Tinta fondo, formulario en Azul Noche
════════════════════════════════════════════════════════════ */
#contacto {
  padding: var(--space-section) 0;
  background: var(--azul-tinta);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: start;
}

/* Contact info */
.contact-info-item {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: rgba(3, 180, 224, 0.08);
  border: 1px solid rgba(3, 180, 224, 0.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--cian-ia);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 16px; height: 16px; }
.contact-info-label {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-info-value {
  font-size: var(--text-body);
  color: var(--text-primary);
  line-height: 1.65;
  text-decoration: none;
  transition: color var(--t);
}
a.contact-info-value:hover { color: var(--cian-ia); }

.social-links { display: flex; gap: 0.7rem; margin-top: 1.8rem; }
.social-link {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.social-link:hover {
  background: rgba(3, 180, 224, 0.1);
  border-color: var(--cian-ia);
  color: var(--cian-ia);
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}
.required { color: var(--cian-ia); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(1, 13, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: var(--text-body);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cian-ia);
  box-shadow: 0 0 0 3px rgba(3, 180, 224, 0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--danger); }
.form-group textarea { min-height: 115px; resize: vertical; }
.form-group select option { background: var(--azul-noche); }

.error-msg {
  font-size: calc(var(--text-ui) - 0.01rem);
  color: var(--danger);
  margin-top: 0.3rem;
  display: none;
}
.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cian-ia);
  line-height: 1.7;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
   Per manual: Azul Tinta fondo, texto Gris Niebla, logo blanco
════════════════════════════════════════════════════════════ */
footer {
  background: rgba(1, 13, 42, 0.96);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: var(--text-body);
  color: var(--text-body);
  margin-top: 1rem;
  max-width: 240px;
  line-height: 1.8;
}
.footer-sub-tag {
  font-size: var(--text-ui);
  color: var(--text-muted);
  margin-top: 0.3rem !important;
  letter-spacing: 0.04em;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a {
  font-size: var(--text-body);
  color: var(--text-body);
  transition: color var(--t);
}
.footer-col ul a:hover { color: var(--cian-ia); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-ui);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--t);
}
.footer-bottom-links a:hover { color: var(--blanco); }


/* ════════════════════════════════════════════════════════════
   SCROLL TO TOP
════════════════════════════════════════════════════════════ */
#scrollTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--azul-electrico);
  color: var(--blanco);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
#scrollTop:hover {
  background: var(--indigo-pulso);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 69, 229, 0.4);
}
#scrollTop.show { display: flex; }
#scrollTop:focus-visible { outline: 2px solid var(--cian-ia); outline-offset: 4px; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-visual   { width: 320px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-layout { flex-direction: column; padding: 8rem 0 3rem; gap: 2rem; }
  .hero-visual { width: 100%; max-width: 300px; opacity: 0.4; }
  .hero-stats  { gap: 1.5rem; flex-wrap: wrap; }

  .about-layout,
  .contact-layout,
  .product-row,
  .product-row.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .product-row.reverse .product-visual { order: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 480px)
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .team-grid     { grid-template-columns: 1fr; }
  .hero-stats    { flex-direction: column; gap: 1rem; }
  .product-row   { padding: 2rem 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }
  h1             { letter-spacing: -0.025em; }
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITY — Reduced motion
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
