/* ==========================================================================
   IVOR MONTOYA | SOLUCIONES DIGITALES QUE HACEN CRECER TU NEGOCIO
   Hoja de estilos principal - ivormontoya.es
   Diseño tecnológico premium, responsive, accesible (WCAG 2.2 AA)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS Y TEMA
   -------------------------------------------------------------------------- */
:root {
  /* Paleta cromática corporativa */
  --color-bg-dark: #061426;             /* Azul marino principal */
  --color-bg-dark-rgb: 6, 20, 38;
  --color-surface-dark: #0A1C33;        /* Superficie oscura secundaria */
  --color-surface-card: #0E2442;        /* Tarjeta oscura tecnológica */
  --color-surface-light: #F4F7FB;       /* Gris claro / blanco roto */
  --color-surface-white: #FFFFFF;       /* Blanco puro */
  --color-primary: #087CFF;             /* Azul eléctrico */
  --color-primary-rgb: 8, 124, 255;
  --color-primary-hover: #0066D6;
  --color-primary-btn: #0066D6;         /* Azul para elementos con texto blanco (contraste AA 5.42:1) */
  --color-accent-cyan: #00C8FF;         /* Cian de alta tecnología */
  --color-accent-cyan-rgb: 0, 200, 255;
  --color-silver-light: #E2E8F0;        /* Acabado plateado brillante */
  --color-silver-mid: #94A3B8;          /* Acabado plateado medio */

  /* Textos y contrastes WCAG 2.2 AA */
  --color-text-primary: #FFFFFF;        /* Texto principal en fondo oscuro (Contraste 16.5:1) */
  --color-text-secondary: #CBD5E1;      /* Texto de apoyo legible (Contraste 10.2:1) */
  --color-text-muted: #94A3B8;          /* Texto secundario y metadatos (Contraste 6.1:1) */
  --color-text-dark: #0B192C;           /* Texto en tarjetas claras (Contraste 14.8:1) */
  --color-text-dark-muted: #475569;     /* Texto secundario en tarjetas claras */

  /* Bordes, resplandores y sombras */
  --color-border-glow: rgba(8, 124, 255, 0.35);
  --color-border-subtle: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(8, 124, 255, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(0, 200, 255, 0.3);

  /* Estados y feedback */
  --color-success: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-error: #EF4444;
  --color-error-bg: rgba(239, 68, 68, 0.15);
  --color-warning: #F59E0B;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;

  /* Geometría y radios */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout y contenedores */
  --container-max: 1240px;
  --header-height: 80px;

  /* Transiciones */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET Y BASES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-dark);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg-dark);
  background-image:
    linear-gradient(rgba(6, 20, 38, 0.55), rgba(6, 20, 38, 0.7)),
    url("../images/fondo-tecnologico.webp"),
    radial-gradient(circle at 15% 15%, rgba(8, 124, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(0, 200, 255, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, cover, auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

main {
  flex: 1 0 auto;
}

/* Enlaces de accesibilidad */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-primary-btn);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 99999;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--color-accent-cyan);
}

/* Enfoque visible accesible (WCAG 2.2 AA) */
:focus-visible {
  outline: 3px solid var(--color-accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Ocultación accesible */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA Y JERARQUÍA
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

p.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--color-accent-cyan) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: rgba(8, 124, 255, 0.15);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(8, 124, 255, 0.4);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent-cyan);
  box-shadow: 0 0 8px var(--color-accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   4. CONTENEDORES Y ESTRUCTURA
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  position: relative;
}

.section-alt {
  background-color: transparent;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   5. BOTONES Y ACCIONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.3;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-btn) 0%, #0060D6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(8, 124, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0071E8 0%, var(--color-primary-btn) 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(8, 124, 255, 0.55), 0 0 12px var(--color-accent-cyan);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(8, 124, 255, 0.15);
  border-color: var(--color-primary);
  color: var(--color-accent-cyan);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--color-accent-cyan);
  border-color: var(--color-accent-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(0, 200, 255, 0.12);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-light {
  background: #FFFFFF;
  color: var(--color-text-dark);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: var(--color-surface-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.1rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. NAVEGACIÓN Y CABECERA (HEADER)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(6, 20, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: all var(--transition-fast);
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(6, 20, 38, 0.96);
  border-bottom-color: var(--color-border-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(8, 124, 255, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--color-accent-cyan);
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan));
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-drawer-cta {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botón menú móvil */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: #FFFFFF;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION (INICIO)
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.hero-actions {
  margin-bottom: 2.5rem;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.4);
  color: var(--color-accent-cyan);
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hero-phone svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-phone:hover {
  background: var(--color-accent-cyan);
  color: var(--color-bg-dark);
}

/* Botón flotante para reabrir las preferencias de cookies (esquina inferior izquierda) */
.cookie-reopen {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-glow);
  background: var(--color-primary-btn);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cookie-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 124, 255, 0.45);
}

.cookie-reopen svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Botón flotante de WhatsApp (esquina inferior derecha) */
.whatsapp-float {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #46D447 0%, #1BA332 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* 4 Pilares de valor sin cifras inventadas */
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pillar-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(8, 124, 255, 0.15);
  border: 1px solid rgba(8, 124, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-cyan);
  margin-bottom: 0.25rem;
}

.pillar-icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* Imagen visual Hero */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(8, 124, 255, 0.35);
  background: var(--color-surface-dark);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941; /* proporción original de la portada: evita desplazamientos de subpíxel al usar versiones responsive */
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

/* Badges flotantes en Hero */
.floating-badge {
  position: absolute;
  background: rgba(6, 20, 38, 0.92);
  border: 1px solid var(--color-border-glow);
  backdrop-filter: blur(12px);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm, var(--shadow-md));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  animation: float-badge 4s ease-in-out infinite;
}

.floating-badge.badge-top {
  top: 14px;
  right: 12px;
}

.floating-badge.badge-bottom {
  bottom: 14px;
  left: 12px;
  animation-delay: -2s;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.floating-badge-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
}

.floating-badge-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.floating-badge-subtitle {
  font-size: 0.64rem;
  color: var(--color-accent-cyan);
}

/* --------------------------------------------------------------------------
   8. TARJETAS DE SERVICIOS
   Tarjetas claras de alto contraste para máxima legibilidad, combinadas
   con el fondo tecnológico oscuro (requisito de identidad de marca)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Tarjeta de servicio clara */
.service-card {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(8, 124, 255, 0.25);
  border-color: var(--color-primary);
}

.service-card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0B192C;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 20, 38, 0.88);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(0, 200, 255, 0.35);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.service-card-body {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--color-surface-white);
}

.service-card-title {
  color: var(--color-text-dark);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card-desc {
  color: var(--color-text-dark-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-deliverables {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

.service-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.45rem;
}

.service-deliverables svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Listas de entregables sobre fondo oscuro */
.dark-deliverables li {
  color: #FFFFFF;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.service-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. SECCIÓN SOBRE MÍ (EN INICIO Y PÁGINA ESPECÍFICA)
   -------------------------------------------------------------------------- */
.about-preview {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-media-box {
  position: relative;
}

.about-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-glow);
  background: var(--color-surface-card);
}

.about-photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: rgba(10, 28, 51, 0.95);
  border: 1px solid var(--color-accent-cyan);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 260px;
}

.about-badge-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.about-badge-text {
  font-size: 0.9rem;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.35;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2.25rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}

.value-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-card-title svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent-cyan);
}

.value-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   10. PROCESO DE TRABAJO (PASO A PASO)
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.process-step:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 15px rgba(8, 124, 255, 0.2);
}

.process-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: rgba(8, 124, 255, 0.4);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.process-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.process-desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. PREGUNTAS FRECUENTES (FAQ ACORDEÓN ACCESIBLE)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--color-border-glow);
}

.faq-summary {
  padding: 1.35rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 22px;
  height: 22px;
  fill: var(--color-accent-cyan);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. BLOQUE CTA GLOBAL
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #0A2242 0%, #061426 100%);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(8, 124, 255, 0.18) 0%, transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   13. FORMULARIO DE CONTACTO Y CAPTACIÓN
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.contact-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.form-label .required-mark {
  color: var(--color-accent-cyan);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(6, 20, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-accent-cyan);
  background: rgba(6, 20, 38, 0.95);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.25);
  outline: none;
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

.form-error {
  color: #F87171;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300C8FF'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
  padding-right: 2.5rem;
}

.form-select option {
  background-color: var(--color-bg-dark);
  color: #FFFFFF;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.45;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.form-feedback {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-feedback.is-success {
  display: block;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success);
  color: #A7F3D0;
}

.form-feedback.is-error {
  display: block;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error);
  color: #FECACA;
}

/* Información de contacto complementaria */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(8, 124, 255, 0.15);
  border: 1px solid rgba(8, 124, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-cyan);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-info-details h3 {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.contact-info-details p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.45;
}

.contact-info-details a {
  color: var(--color-accent-cyan);
  font-weight: 600;
}

.contact-info-details a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   14. BLOG: TARJETAS, BUSCADOR Y FILTROS
   -------------------------------------------------------------------------- */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.blog-search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.blog-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.blog-search-input:focus {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
  outline: none;
}

.blog-search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--color-text-muted);
  pointer-events: none;
}

.blog-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--color-primary-btn);
  color: #FFFFFF;
  border-color: var(--color-primary-btn);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.blog-card-media {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #0B192C;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-title a {
  color: #FFFFFF;
}

.blog-title a:hover {
  color: var(--color-accent-cyan);
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-accent-cyan);
}

.blog-read-more:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   15. PÁGINA DE ARTÍCULO INDIVIDUAL (LECTURA CÓMODA)
   -------------------------------------------------------------------------- */
.article-header {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #E2E8F0;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.75rem;
}

.article-content li {
  margin-bottom: 0.6rem;
}

.article-content blockquote {
  border-left: 4px solid var(--color-accent-cyan);
  padding: 1.25rem 1.75rem;
  background: rgba(8, 124, 255, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  font-style: italic;
  color: #FFFFFF;
}

.article-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0 3rem 0;
  border: 1px solid var(--color-border-glow);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   16. PLANTILLAS LEGALES (AVISO LEGAL, PRIVACIDAD, COOKIES)
   -------------------------------------------------------------------------- */
.legal-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.legal-card h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 0.5rem;
}

.legal-card h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent-cyan);
}

.legal-card p,
.legal-card li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.legal-badge-config {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-warning);
  color: #FCD34D;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   17. BANNER DE COOKIES ACCESIBLE (RGPD)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 440px;
  width: calc(100% - 40px);
  background: rgba(6, 20, 38, 0.97);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  backdrop-filter: blur(16px);
  display: none;
  animation: slide-up-cookie 0.35s ease-out forwards;
}

@keyframes slide-up-cookie {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner.is-active {
  display: block;
}

.cookie-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   18. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #040D1A;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

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

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 340px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-cyan);
}

.footer-links a.footer-phone {
  color: var(--color-accent-cyan);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.45);
}

.footer-links a.footer-phone:hover {
  color: #FFFFFF;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--color-primary-btn);
  border-color: var(--color-primary-btn);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 124, 255, 0.4);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn[hidden] {
  display: none;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-links a {
  color: var(--color-text-muted);
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   19. ACCESIBILIDAD Y PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-badge {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   20. SECCIÓN MIS SERVICIOS (TARJETAS CLARAS HORIZONTALES MOCKUP)
   -------------------------------------------------------------------------- */
.services-preview-section {
  background-color: transparent;
  padding: 3.5rem 0 4rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-clean-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.services-clean-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.services-clean-title-wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.services-clean-heading-col {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

.services-clean-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.services-clean-underline {
  display: block;
  width: 44px;
  height: 3.5px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-top: 6px;
}

.services-clean-subtitle {
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.25rem;
}

.services-clean-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.services-clean-view-all:hover {
  color: #FFFFFF;
  gap: 0.65rem;
  text-decoration: underline;
}

.services-arrow-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Carrusel de servicios: se ven seis tarjetas y el resto se desplaza con las flechas */
.services-carousel {
  position: relative;
}

.services-clean-grid {
  --cards-visible: 6;
  --cards-gap: 14px;
  display: flex;
  gap: var(--cards-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.services-clean-grid::-webkit-scrollbar {
  display: none;
}

.services-clean-grid > .clean-card {
  flex: 0 0 calc((100% - (var(--cards-visible) - 1) * var(--cards-gap)) / var(--cards-visible));
  scroll-snap-align: start;
}

.services-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(6, 20, 38, 0.92);
  border: 1px solid var(--color-border-glow);
  color: var(--color-accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.services-carousel-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.services-carousel-btn:hover,
.services-carousel-btn:focus-visible {
  background: var(--color-primary-btn);
  color: #FFFFFF;
}

.services-carousel-prev {
  left: -18px;
}

.services-carousel-next {
  right: -18px;
}

.services-carousel-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.clean-card {
  background: var(--color-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.clean-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(8, 124, 255, 0.15);
  border-color: #087CFF;
}

.clean-card-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--color-surface-card);
  overflow: hidden;
  line-height: 0;
}

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

.clean-card-body {
  padding: 14px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--color-surface-card);
}

.clean-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 8px;
  min-height: 42px;
}

.clean-card-desc {
  font-size: 0.82rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.clean-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-cyan);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.clean-card-link:hover {
  color: #FFFFFF;
  gap: 7px;
  text-decoration: underline;
}

.clean-card-link .arrow {
  transition: transform 0.2s ease;
}

.clean-card-link:hover .arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   FOCO POR TECLADO EN CAMPOS DE TEXTO
   Los campos ocultan el contorno con ratón; el contorno solo aparece cuando
   el usuario navega con teclado (main.js añade la clase .using-keyboard).
   -------------------------------------------------------------------------- */
.using-keyboard .form-control:focus-visible,
.using-keyboard .blog-search-input:focus-visible {
  outline: 3px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   ESTILOS DE SERVICIOS (antes en línea en servicios.html)
   -------------------------------------------------------------------------- */
.service-detail-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.service-detail-grid.reverse {
  grid-template-columns: 1fr 1fr;
}
.service-detail-grid.reverse .service-detail-media {
  order: 2;
}
.service-detail-grid.reverse .service-detail-text {
  order: 1;
}
.service-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-glow);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-dark);
}
.service-detail-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.box-problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.box-ps-item {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}
.box-problem {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.box-problem h3 {
  color: #F87171;
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
}
.box-solution {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.box-solution h3 {
  color: #34D399;
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
}
.service-quick-faq {
  margin-top: 1.5rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.service-quick-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-accent-cyan);
  font-size: 0.92rem;
}
.service-quick-faq p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail-grid.reverse .service-detail-media {
    order: 1;
  }
  .service-detail-grid.reverse .service-detail-text {
    order: 2;
  }
  .box-problem-solution {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   ESTILOS DE SOBRE MÍ (antes en línea en sobre-mi.html)
   -------------------------------------------------------------------------- */
.about-story-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: flex-start;
}
.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.about-gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-glow);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-card);
}
.about-gallery-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.gallery-caption {
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-surface-dark);
  border-top: 1px solid var(--color-border-subtle);
}
.skills-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.skill-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}
.skill-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.skill-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(8, 124, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-cyan);
  margin-bottom: 0.85rem;
}
.skill-card-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.skill-card h3 {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}
.skill-card p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 960px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-gallery {
    max-width: 550px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   PÁGINA DE AUDITORÍA GRATIS (auditoria.html)
   -------------------------------------------------------------------------- */
.audit-section {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(8, 124, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(0, 200, 255, 0.1), transparent 50%),
    linear-gradient(rgba(6, 20, 38, 0.6), rgba(6, 20, 38, 0.75)),
    url("../images/fondo-formulario-auditoria.webp") center / cover no-repeat,
    var(--color-bg-dark);
}

.audit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.1);
  color: var(--color-accent-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.audit-badge svg,
.audit-points svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audit-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.audit-lead {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.audit-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.audit-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #FFFFFF;
  font-weight: 600;
}

.audit-points svg {
  color: var(--color-accent-cyan);
  flex-shrink: 0;
}

.audit-card {
  justify-self: end;
  width: 100%;
  max-width: 390px;
  background: var(--color-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.audit-card-head {
  text-align: center;
  margin-bottom: 0.9rem;
}

.audit-logo {
  display: block;
  margin: 0 auto 0.5rem;
  height: auto;
  width: auto;
  max-width: 64px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #000000;
}

.audit-kicker {
  color: var(--color-accent-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.audit-card-title {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

.audit-card-sub {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

/* Formulario compacto de la página de auditoría */
.audit-form .form-group {
  margin-bottom: 0.6rem;
}

.audit-form .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.audit-form .form-control {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.audit-form textarea.form-control {
  min-height: 0;
}

.audit-form .form-checkbox-label {
  font-size: 0.74rem;
  line-height: 1.35;
}

.audit-submit {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--color-accent-cyan);
  color: var(--color-bg-dark);
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.audit-submit:hover {
  background: #33D6FF;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .audit-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .audit-card {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   AJUSTES DE TAMAÑO DEL HERO (solo portada)
   -------------------------------------------------------------------------- */
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.hero .hero-subtitle {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.55;
}

.hero .hero-actions {
  margin-bottom: 2rem;
}

.hero .hero-actions .btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}

.hero .pillar-icon-box {
  width: 34px;
  height: 34px;
}

.hero .pillar-icon-box svg {
  width: 17px;
  height: 17px;
}

.hero .pillar-title {
  font-size: 0.85rem;
}

.hero .pillar-desc {
  font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   SEPARACIÓN DE SECCIONES EN LA PORTADA
   Bloques un poco más claros y con línea superior para distinguirlos.
   -------------------------------------------------------------------------- */
.page-home .section,
.page-home .services-preview-section,
.page-home .section-alt {
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   FORMULARIO DE CONTACTO COMPACTO (mismo tamaño que el de auditoría)
   -------------------------------------------------------------------------- */
.page-contact .contact-card {
  max-width: 390px;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
}

.page-contact .contact-card > h2 {
  font-size: 1.1rem !important;
  margin-bottom: 0.3rem !important;
}

.page-contact .contact-card > p {
  font-size: 0.8rem !important;
  margin-bottom: 0.9rem !important;
}

.page-contact .form-group {
  margin-bottom: 0.6rem;
}

.page-contact .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.page-contact .form-control {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.page-contact textarea.form-control {
  min-height: 0;
}

.page-contact .form-checkbox-label {
  font-size: 0.74rem;
  line-height: 1.35;
}

.page-contact .contact-submit-wrap {
  margin-top: 0.6rem !important;
}

.page-contact .contact-submit-wrap .btn-lg {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

/* Cabecera de la página de contacto con la misma escala que la de auditoría */
.page-contact h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.page-contact p.lead {
  font-size: 0.98rem;
}

/* Columnas de contacto más juntas (formulario compacto a la izquierda) */
.page-contact .contact-grid {
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 2.25rem;
  justify-content: start;
}

@media (max-width: 1024px) {
  .page-contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Cabecera de la página de servicios: textos más pequeños */
.page-services h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.page-services p.lead {
  font-size: 0.98rem;
}

