/*
Theme Name:        AsisDataTech Landing
Theme URI:         https://dev.asisdatatech.com
Author:            AsisDataTech
Author URI:        https://asisdatatech.com
Description:       Tema ligero y personalizado optimizado para landing page de una sola vista. Diseñado para AsisDataTech con enfoque en rendimiento, accesibilidad y conversión.
Version:           2.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       asisdatatech-landing
Tags:              one-page, landing-page, full-width-template, responsive-layout, dark
*/

/* ============================================================
   DESIGN TOKENS — Variables CSS de marca AsisDataTech
   Paleta extraída de asisdatatech.com
   ============================================================ */
:root {
  /* ── Colores de marca (extraídos del sitio real) ── */
  --c-navy:          #173E6E;          /* Azul marino principal */
  --c-navy-dark:     #0F2A4A;          /* Azul navy oscuro */
  --c-nav-bg:        #2C3E50;          /* Header real del sitio */
  --c-footer-bg:     rgb(23, 62, 110); /* Footer real del sitio */
  --c-accent:        #4A90D9;          /* Azul acento claro */
  --c-accent-hover:  #2E76C0;          /* Hover del acento */
  --c-highlight:     #5DADE2;          /* Highlight de títulos */

  /* ── Fondos ── */
  --c-bg:            #0D1B2A;          /* Fondo principal oscuro */
  --c-bg-alt:        #112236;          /* Fondo alternativo */
  --c-bg-card:       #1A2E45;          /* Fondo de tarjetas */
  --c-bg-glass:      rgba(23, 62, 110, 0.55); /* Glassmorphism */
  --c-bg-featured:   linear-gradient(135deg, #1B3A6B 0%, #0F2A4A 100%);

  /* ── Bordes ── */
  --c-border:        rgba(74, 144, 217, 0.18);
  --c-border-hover:  rgba(74, 144, 217, 0.5);

  /* ── Texto ── */
  --c-white:         #FFFFFF;
  --c-text:          rgba(255, 255, 255, 0.90);
  --c-text-muted:    rgba(255, 255, 255, 0.58);
  --c-text-dark:     #1A2E45;

  /* ── Gradientes ── */
  --g-hero:     linear-gradient(160deg, #0F2A4A 0%, #1B3A6B 45%, #0D1B2A 100%);
  --g-primary:  linear-gradient(135deg, #2E76C0 0%, #1B3A6B 100%);
  --g-accent:   linear-gradient(135deg, #5DADE2 0%, #2E76C0 100%);
  --g-card:     linear-gradient(145deg, #1A2E45 0%, #142338 100%);
  --g-featured: linear-gradient(135deg, #1B3A6B 0%, #0F2A4A 100%);
  --g-footer:   linear-gradient(180deg, rgb(23,62,110) 0%, #0F2A4A 100%);

  /* ── Tipografía — igual que asisdatatech.com ── */
  --font-heading: 'Prosto One', serif;
  --font-body:    'Catamaran', 'Segoe UI', system-ui, sans-serif;

  --fs-xs:   0.75rem;    /* 12px */
  --fs-sm:   0.875rem;   /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-lg:   1.125rem;   /* 18px */
  --fs-xl:   1.25rem;    /* 20px */
  --fs-2xl:  1.5rem;     /* 24px */
  --fs-3xl:  1.875rem;   /* 30px */
  --fs-4xl:  2.25rem;    /* 36px */
  --fs-5xl:  3rem;       /* 48px */
  --fs-6xl:  4rem;       /* 64px */

  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:   1.15;
  --lh-normal:  1.6;
  --lh-relaxed: 1.8;

  /* ── Espaciado ── */
  --sp-1: 0.25rem;   --sp-2: 0.5rem;    --sp-3: 0.75rem;
  --sp-4: 1rem;      --sp-5: 1.25rem;   --sp-6: 1.5rem;
  --sp-8: 2rem;      --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;     --sp-24: 6rem;
  --sp-32: 8rem;

  /* ── Radios ── */
  --r-sm:   0.375rem;
  --r-md:   0.75rem;
  --r-lg:   1rem;
  --r-xl:   1.5rem;
  --r-2xl:  2rem;
  --r-3xl:  3rem;
  --r-full: 9999px;

  /* ── Sombras ── */
  --shadow-sm:   0 1px 4px  rgba(0, 0, 0, 0.35);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px   rgba(74, 144, 217, 0.25);

  /* ── Transiciones ── */
  --t-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:   280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   420ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 520ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Layout ── */
  --max-w:    1200px;
  --z-nav:    200;
  --z-overlay:300;
}

/* ============================================================
   RESET MÍNIMO
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bloquear scroll cuando nav mobile está abierta */
body.nav-open { overflow: hidden; }

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

/* ============================================================
   SKIP LINK — Accesibilidad WCAG 2.1
   ============================================================ */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--r-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ============================================================
   UTILIDADES GLOBALES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* Encabezados de sección */
.section-header {
  max-width: 640px;
  margin-bottom: var(--sp-12);
}
.section-header--left  { margin-bottom: var(--sp-8); }
.section-header--left .section-header__eyebrow::before,
.section-header--left .section-header__eyebrow::after { display: none; }

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-highlight);
  margin-bottom: var(--sp-3);
}
.section-header__eyebrow::before,
.section-header__eyebrow::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--c-highlight);
  opacity: 0.55;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: var(--fw-normal); /* Prosto One es display, funciona en normal */
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}

.section-header__desc {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform  var(--t-spring),
    box-shadow var(--t-base),
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}

.btn:focus-visible {
  outline: 3px solid var(--c-highlight);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.97); }

/* Primary */
.btn--primary {
  background: var(--g-primary);
  color: var(--c-white);
  box-shadow: 0 4px 18px rgba(46, 118, 192, 0.45);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 118, 192, 0.6);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
  border-color: var(--c-highlight);
  background: rgba(93, 173, 226, 0.1);
}

/* Grande */
.btn--grande {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--fs-lg);
}

/* Estado loading */
.btn--loading { opacity: 0.75; pointer-events: none; }
.btn__loading {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn--loading .btn__loading { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HEADER / NAVEGACIÓN
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: var(--sp-4);
  /* Sin fondo en la parte superior — se funde con el hero */
  transition:
    background  var(--t-slow),
    padding     var(--t-slow),
    box-shadow  var(--t-slow);
}

.site-header--scrolled {
  background: rgba(44, 62, 80, 0.95); /* color real nav del sitio */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-border), var(--shadow-md);
  padding-block: var(--sp-3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

/* Logo */
.nav__logo img {
  height: 44px;
  width: auto;
  filter: brightness(1);
  transition: opacity var(--t-fast);
}
.nav__logo:hover img { opacity: 0.85; }

/* Menú */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover,
.nav__link--active {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
}

/* CTA en nav */
.nav__item--cta .nav__link--cta {
  background: var(--g-primary);
  color: var(--c-white);
  padding: var(--sp-2) var(--sp-5);
  box-shadow: 0 2px 12px rgba(46, 118, 192, 0.4);
}
.nav__item--cta .nav__link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(46, 118, 192, 0.55);
}

/* Hamburguesa */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.nav__toggle:hover { background: rgba(255, 255, 255, 0.14); }

.nav__toggle-bar {
  display: block;
  width: 100%; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
  transform-origin: center;
}
.nav__toggle--open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle--open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle--open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   Imagen de fondo real: disea--o-carpeta + overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Imagen de fondo real del sitio */
.hero__bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://assets.zyrosite.com/YD0p4X8xNDfn1M46/disea--o-carpeta-A0xNVX6wyafe3bGl.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero:hover .hero__bg-img { transform: scale(1); }

/* Overlay doble: oscuro + color de marca */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 42, 74, 0.88) 0%,
    rgba(23, 62, 110, 0.75) 50%,
    rgba(13, 27, 42, 0.92) 100%
  );
}

/* Orbs de profundidad */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 14s ease-in-out infinite;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  top: -15%; right: -8%;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.2) 0%, transparent 70%);
}
.hero__orb--2 {
  width: 350px; height: 350px;
  bottom: -10%; left: -5%;
  background: radial-gradient(circle, rgba(23, 62, 110, 0.3) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  40%       { transform: translate(24px, -18px); }
  70%       { transform: translate(-16px, 14px); }
}

/* Contenido del hero */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-block: var(--sp-32);
  padding-top: calc(var(--sp-32) + 80px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-highlight);
  background: rgba(93, 173, 226, 0.1);
  border: 1px solid rgba(93, 173, 226, 0.3);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: var(--fw-normal);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: var(--sp-5);
}

/* Texto con color de acento — "a la medida" */
.hero__title--accent {
  display: block;
  color: var(--c-highlight);
  text-shadow: 0 0 40px rgba(93, 173, 226, 0.4);
}

.hero__subtitle {
  font-size: clamp(var(--fs-base), 1.8vw, var(--fs-xl));
  color: rgba(255, 255, 255, 0.78);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--sp-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

/* Trust signals / estadísticas */
.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}

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

.hero__trust-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-normal);
  color: var(--c-white);
  letter-spacing: -0.03em;
  order: -1;
}

.hero__trust-label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__trust-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border);
  flex-shrink: 0;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  background: var(--c-bg-alt);
  padding-block: var(--sp-24);
  position: relative;
}

/* Separador superior luminoso */
.servicios::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--c-accent) 30%,
    var(--c-highlight) 60%,
    transparent);
}

/* Centrar encabezado */
.servicios .section-header {
  text-align: center;
  margin-inline: auto;
}
.servicios .section-header .section-header__eyebrow {
  justify-content: center;
}

/* Grid de 3 tarjetas */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* Tarjeta de servicio — SIEMPRE visible por defecto (progressive enhancement) */
.servicio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  transition:
    transform    var(--t-base),
    border-color var(--t-base),
    box-shadow   var(--t-base);
}

/* Animación de entrada: SÓLO si JS está disponible (.js-animate en body) */
.js-animate .servicio-card {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity      var(--t-slow),
    transform    var(--t-slow),
    border-color var(--t-base),
    box-shadow   var(--t-base);
}

.js-animate .servicio-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retraso escalonado */
.js-animate .servicio-card:nth-child(2) { transition-delay: 120ms; }
.js-animate .servicio-card:nth-child(3) { transition-delay: 240ms; }

.servicio-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.js-animate .servicio-card.is-visible:hover {
  transform: translateY(-6px);
}

/* Tarjeta destacada (servicio central) */
.servicio-card--featured {
  background: var(--g-featured);
  border-color: rgba(74, 144, 217, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 1;
  transform: scale(1.02);
}

.js-animate .servicio-card--featured {
  transform: scale(1.02) translateY(24px);
}

.js-animate .servicio-card--featured.is-visible {
  transform: scale(1.02) translateY(0);
}

.servicio-card--featured:hover,
.js-animate .servicio-card--featured.is-visible:hover {
  transform: scale(1.02) translateY(-6px);
}

.servicio-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--g-accent);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.servicio-card__icono {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: var(--g-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(46, 118, 192, 0.3);
  transition: transform var(--t-spring);
  flex-shrink: 0;
}
.servicio-card:hover .servicio-card__icono {
  transform: scale(1.12) rotate(-5deg);
}

.servicio-card__titulo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-normal);
  color: var(--c-white);
  line-height: var(--lh-tight);
}

.servicio-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-relaxed);
  flex: 1;
}
.servicio-card--featured .servicio-card__desc {
  color: rgba(255, 255, 255, 0.78);
}

.servicio-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-highlight);
  margin-top: var(--sp-2);
  transition: gap var(--t-spring), color var(--t-fast);
}
.servicio-card__link:hover {
  gap: var(--sp-3);
  color: var(--c-white);
}

/* ============================================================
   DESARROLLO PERSONALIZADO
   ============================================================ */
.desarrollo {
  background: var(--c-bg);
  padding-block: var(--sp-24);
  position: relative;
  overflow: hidden;
}

/* Decoración de fondo */
.desarrollo::after {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 62, 110, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.desarrollo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Features / sub-servicios */
.desarrollo__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-block: var(--sp-8);
}

.desarrollo__feature {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  transition: opacity var(--t-slow), transform var(--t-slow);
}

/* Animación de entrada: sólo con JS */
.js-animate .desarrollo__feature {
  opacity: 0;
  transform: translateX(-20px);
}
.js-animate .desarrollo__feature.is-visible { opacity: 1; transform: none; }
.js-animate .desarrollo__feature:nth-child(2) { transition-delay: 120ms; }
.js-animate .desarrollo__feature:nth-child(3) { transition-delay: 240ms; }

.desarrollo__feature-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-md);
  background: var(--g-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs);
  color: var(--c-white);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 10px rgba(46, 118, 192, 0.35);
}

.desarrollo__feature-titulo {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  color: var(--c-white);
  margin-bottom: var(--sp-1);
}

.desarrollo__feature-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-relaxed);
}

/* Columna de imagen */
.desarrollo__imagen {
  position: relative;
}

.desarrollo__figura {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--c-border);
}

.desarrollo__figura img:first-child {
  width: 100%;
  border-radius: var(--r-3xl);
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Imagen RPA superpuesta */
.desarrollo__figura-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 220px;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--c-bg);
  animation: badge-float 5s ease-in-out infinite;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  background: var(--c-bg-alt);
  padding-block: var(--sp-24);
  position: relative;
}

.contacto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--c-accent) 30%,
    var(--c-highlight) 60%,
    transparent);
}

.contacto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%,
    rgba(74, 144, 217, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contacto__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}

/* Datos de contacto */
.contacto__datos {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.contacto__dato {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition:
    border-color var(--t-fast),
    transform    var(--t-base),
    box-shadow   var(--t-base),
    opacity      var(--t-slow);
}

/* Animación de entrada: sólo con JS */
.js-animate .contacto__dato {
  opacity: 0;
  transform: translateX(-16px);
}
.js-animate .contacto__dato.is-visible {
  opacity: 1;
  transform: none;
}
.js-animate .contacto__dato:nth-child(2) { transition-delay: 120ms; }
.js-animate .contacto__dato:nth-child(3) { transition-delay: 240ms; }

.contacto__dato:hover {
  border-color: var(--c-border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contacto__dato-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--g-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

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

.contacto__dato-label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contacto__dato-valor {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-white);
  word-break: break-all;
}

/* Formulario */
.contacto__form-wrap {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
}

.form__fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form__grupo {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.form__required { color: var(--c-highlight); margin-left: 2px; }
.form__optional  { color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: var(--fw-normal); }

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-white);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--c-text-muted); }

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(74, 144, 217, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

/* Estado de error */
.form__input--error {
  border-color: #E74C3C !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.form__error {
  font-size: var(--fs-xs);
  color: #E74C3C;
  min-height: 1.2em;
}

/* Select con flecha custom */
.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235DADE2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: var(--sp-8);
}
.form__select option { background: var(--c-bg-card); color: var(--c-white); }

.form__textarea { resize: vertical; min-height: 130px; }

.form__pie {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.form__privacidad {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  flex: 1;
}

/* Feedback */
.form__feedback { margin-top: var(--sp-2); }

.feedback {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.feedback--ok {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.35);
  color: #2ECC71;
}

.feedback--err {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #E74C3C;
}
.feedback--err a { color: var(--c-highlight); text-decoration: underline; }

/* ============================================================
   FOOTER
   Color real: rgb(23, 62, 110) → gradiente oscuro
   ============================================================ */
.site-footer {
  background: var(--g-footer);
  border-top: 1px solid rgba(74, 144, 217, 0.2);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--c-border);
}

.footer__brand img {
  margin-bottom: var(--sp-4);
  filter: brightness(1.1);
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--lh-relaxed);
  max-width: 320px;
  margin-bottom: var(--sp-4);
}

.footer__email {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-highlight);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__email:hover { color: var(--c-white); }

.footer__nav {
  display: flex;
  gap: var(--sp-10);
}

.footer__nav-col { display: flex; flex-direction: column; gap: var(--sp-4); }

.footer__nav-titulo {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-1);
}

.footer__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__link {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--c-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal {
  display: flex;
  gap: var(--sp-5);
}

.footer__legal-link {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__legal-link:hover { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================================ */
@media (max-width: 1023px) {
  .servicios__grid    { grid-template-columns: 1fr 1fr; }
  .desarrollo__inner  { grid-template-columns: 1fr; gap: var(--sp-12); }
  .desarrollo__imagen { order: -1; }
  .desarrollo__figura-badge { width: 160px; }
  .contacto__inner    { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer__inner      { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --sp-24: 4rem;
    --sp-32: 5rem;
  }

  /* Nav mobile */
  .nav__toggle { display: flex; }

  .nav__menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 68px;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-2);
    z-index: var(--z-overlay);
  }
  .nav__menu--open { display: flex; }
  .nav__link { font-size: var(--fs-xl); padding: var(--sp-4) var(--sp-8); }

  /* Hero */
  .hero__trust   { flex-wrap: wrap; gap: var(--sp-4); }
  .hero__trust-divider { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__content { padding-block: var(--sp-16); padding-top: calc(var(--sp-16) + 80px); }

  /* Servicios */
  .servicios__grid { grid-template-columns: 1fr; }
  .servicio-card--featured { transform: none; }
  .servicio-card--featured.is-visible { transform: none; }
  .servicio-card--featured:hover { transform: translateY(-6px); }

  /* Desarrollo */
  .desarrollo__figura-badge { display: none; }

  /* Contacto */
  .form__fila { grid-template-columns: 1fr; }
  .form__pie  { flex-direction: column; align-items: stretch; }
  .contacto__form-wrap { padding: var(--sp-5); }

  /* Footer */
  .footer__inner  { gap: var(--sp-6); }
  .footer__nav    { flex-wrap: wrap; gap: var(--sp-6); }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal  { justify-content: center; }
}

/* ============================================================
   ACCESIBILIDAD & PREFERENCIAS DEL SISTEMA
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--c-highlight);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: rgba(74, 144, 217, 0.3);
  color: var(--c-white);
}

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 217, 0.3);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(74, 144, 217, 0.55); }

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__bg-img { transform: none !important; }
}
