/* ==========================================================================
   DEI LABS — SISTEMA DE DISEÑO (Minimalismo Técnico de Alta Precisión)
   Dark-Mode First | deivi.es
   ========================================================================== */

:root {
  /* Paleta oficial Dei Labs */
  --bg-base: #0B0F19;
  --bg-surface: #131B2E;
  --bg-surface-elevated: #172238;
  --bg-input: #0E1422;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(148, 163, 184, 0.24);

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #06B6D4;
  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --cobalt-soft: rgba(37, 99, 235, 0.16);
  --cyan-soft: rgba(6, 182, 212, 0.14);
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, 0.14);

  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  /* Degradados clave */
  --gradient-brand: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-brand-text: linear-gradient(95deg, #60A5FA 0%, #06B6D4 100%);

  /* Tipografías */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radios y espaciado */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container-max: 1140px;
  --header-height: 76px;

  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-base: 280ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  position: relative;
  padding-block: 6.25rem;
}

/* ==================== TIPOGRAFÍA DE SECCIONES ==================== */
.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==================== BOTONES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(6, 182, 212, 0.5);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(19, 27, 46, 0.75);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-nav-cta {
  padding: 0.58rem 1.15rem;
  font-size: 0.875rem;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.btn-nav-cta:hover,
.btn-nav-cta.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.65);
}

.btn-product-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.42);
  color: #34D399;
}

.btn-product-emerald:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #062118;
  box-shadow: 0 10px 26px -8px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

.btn-product-cobalt {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(6, 182, 212, 0.4);
  color: #38BDF8;
}

.btn-product-cobalt:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 10px 26px -8px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.62rem 1.1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.icon-inline {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition-fast);
}

.text-link:hover {
  color: #67E8F9;
}

/* ==================== HEADER / NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 15, 25, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(11, 15, 25, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 4px 14px -4px rgba(6, 182, 212, 0.25);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dei {
  color: var(--text-main);
}

.brand-labs {
  color: var(--accent);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Selector de idioma ES / EN (estilo DeiPass adaptado a Dei Labs) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: rgba(19, 27, 46, 0.85);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.42rem 0.62rem;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.lang-btn:hover:not(.is-active) {
  color: var(--text-main);
}

.lang-btn.is-active {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.65);
}

.header-mobile-controls {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-block: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-main);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Botón hamburguesa móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(19, 27, 46, 0.7);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.menu-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.menu-bar {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.99);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.78rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover {
  background: rgba(19, 27, 46, 0.9);
  color: var(--text-main);
}

.mobile-nav-cta-wrap {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  padding-block: 7.5rem 6.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 36%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 36%, #000 20%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.32;
}

.hero-glow-primary {
  width: 560px;
  height: 360px;
  top: -120px;
  left: 50%;
  transform: translateX(-65%);
  background: var(--primary);
}

.hero-glow-accent {
  width: 440px;
  height: 300px;
  top: -40px;
  left: 50%;
  transform: translateX(-10%);
  background: var(--accent);
  opacity: 0.22;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(19, 27, 46, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.28);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-specs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(19, 27, 46, 0.55);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.spec-sep {
  color: rgba(148, 163, 184, 0.35);
}

/* ==================== PRODUCTOS ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card--emerald::before {
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}

.product-card--cobalt::before {
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.product-card--emerald:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 24px 48px -20px rgba(16, 185, 129, 0.22);
}

.product-card--cobalt:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 24px 48px -20px rgba(37, 99, 235, 0.28);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-top {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.product-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-base);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.product-icon-wrap--emerald {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 22px -8px rgba(16, 185, 129, 0.35);
}

.product-icon-wrap--cobalt {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 8px 22px -8px rgba(37, 99, 235, 0.4);
}

.product-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-dei {
  color: var(--text-main);
}

.product-accent-emerald {
  color: var(--emerald);
}

.product-accent-cobalt {
  background: linear-gradient(95deg, #3B82F6 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-category {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 6px;
  background: rgba(11, 15, 25, 0.68);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.tech-badge--emerald {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.32);
  color: #34D399;
}

.tech-badge--cobalt {
  background: var(--cobalt-soft);
  border-color: rgba(37, 99, 235, 0.36);
  color: #60A5FA;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check--emerald {
  color: var(--emerald);
}

.feature-check--cobalt {
  color: var(--accent);
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-domain-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==================== INGENIERÍA Y FILOSOFÍA ==================== */
.philosophy-section {
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.26) 0%, rgba(11, 15, 25, 0) 100%);
  border-top: 1px solid var(--border-subtle);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.pillar-card:hover {
  border-color: rgba(6, 182, 212, 0.34);
  transform: translateY(-3px);
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.24);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.5);
}

.pillar-title {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

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

/* ==================== PRIVACIDAD ==================== */
.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
}

.privacy-lead {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.72;
  margin-bottom: 1.85rem;
}

.privacy-lead strong {
  color: var(--text-main);
  font-weight: 600;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.privacy-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.privacy-fact-item {
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.fact-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.fact-value {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==================== CONTACTO ==================== */
.contact-section {
  border-top: 1px solid var(--border-subtle);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 3rem;
  align-items: start;
}

.contact-guarantees {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(19, 27, 46, 0.55);
  border: 1px solid var(--border-subtle);
}

.guarantee-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-title {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.guarantee-text {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Honeypot oculto de forma accesible pero invisible */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.req {
  color: var(--accent);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem;
  font-size: 0.94rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.form-input:hover {
  border-color: var(--border-hover);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.form-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.select-wrap {
  position: relative;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.form-textarea {
  resize: vertical;
  min-height: 126px;
}

/* Checkbox personalizado */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  cursor: pointer;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1px solid var(--border-hover);
  background: var(--bg-input);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.inline-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.inline-link-btn:hover {
  color: #67E8F9;
}

/* Estados de envío del formulario */
.btn-submit {
  position: relative;
  min-height: 48px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  animation: spin 0.75s linear infinite;
}

.btn-submit.is-loading .btn-spinner {
  display: inline-block;
}

.btn-submit.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-feedback {
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.form-feedback.is-success {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.form-feedback.is-error {
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #080B13;
  padding-block: 4rem 2.25rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  max-width: 340px;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

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

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.6);
}

/* ==================== MODAL POLÍTICA DE PRIVACIDAD ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.65rem 1.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.6);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.modal-body {
  padding: 1.5rem 1.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.35rem;
}

.modal-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.85rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.45);
}

/* ==================== PÁGINA LEGAL DEDICADA (privacidad.html) ==================== */
.legal-hero {
  padding-block: 4.5rem 3rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.35) 0%, rgba(11, 15, 25, 0) 100%);
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.legal-content {
  padding-block: 3.5rem 5.5rem;
}

.legal-article {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.legal-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.legal-block h2 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.legal-block p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
}

.legal-block p + p {
  margin-top: 0.85rem;
}

.legal-list {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1.15rem;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==================== ANIMACIONES REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-panel {
    grid-template-columns: 1fr;
    padding: 2.25rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }

  .header-mobile-controls,
  .menu-toggle {
    display: inline-flex;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 2.25rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: 4.5rem;
  }

  .hero {
    padding-block: 5.25rem 4.5rem;
  }

  .product-card,
  .contact-form-card,
  .privacy-panel {
    padding: 1.6rem;
  }

  .pillars-grid,
  .privacy-facts,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    gap: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
