/* ==========================================================================
   DEIPASS — SISTEMA DE DISEÑO (Ecosistema Dei Labs)
   Minimalismo Técnico de Alta Precisión | Dark-Mode First | Énfasis Esmeralda
   deipass.deivi.es
   ========================================================================== */

:root {
  /* Paleta oficial Dei Labs + Protagonismo Esmeralda DeiPass */
  --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);

  /* Color Protagonista DeiPass */
  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-light: #34D399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(16, 185, 129, 0.35);

  /* Acentos secundarios reservados para ecosistema Dei Labs */
  --cyan: #06B6D4;
  --cobalt: #2563EB;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --cobalt-soft: rgba(37, 99, 235, 0.14);

  /* Semánticos */
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, 0.14);

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

  /* Degradados */
  --gradient-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-emerald-text: linear-gradient(95deg, #34D399 0%, #10B981 60%, #06B6D4 100%);
  --gradient-deilabs: 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.88em;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--emerald);
  color: #062118;
  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: 5.75rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.28) 0%, rgba(11, 15, 25, 0) 100%);
  border-top: 1px solid var(--border-subtle);
}

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

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.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(--emerald-light);
  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.03rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.deilabs-accent {
  background: var(--gradient-deilabs);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ==================== 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.94rem;
  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-emerald);
  color: #052016;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(16, 185, 129, 0.65);
  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(--emerald-border);
  transform: translateY(-1px);
}

.btn-nav-cta {
  padding: 0.56rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.42);
  color: var(--emerald-light);
  border-radius: var(--radius-sm);
}

.btn-nav-cta:hover,
.btn-nav-cta.is-active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #052016;
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.65);
}

.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(--emerald-light);
  transition: color var(--transition-fast);
}

.text-link:hover {
  color: #6EE7B7;
}

/* ==================== HEADER / NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 15, 25, 0.78);
  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.94);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

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

/* Logotipo DeiPass alineado con Dei Labs */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  flex-shrink: 0;
}

.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(16, 185, 129, 0.28);
  box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.28);
  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.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.brand-pass {
  color: var(--emerald);
}

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

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

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

.nav-link {
  position: relative;
  font-size: 0.9rem;
  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(--emerald);
  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);
}

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

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

.lang-btn {
  padding: 0.32rem 0.56rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

.lang-btn.active {
  background: var(--emerald);
  color: #052016;
  font-weight: 600;
}

/* 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(--emerald-border);
  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.76rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  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(--emerald-light);
}

.mobile-nav-cta-wrap {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  padding-block: 5.5rem 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.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 76% at 50% 38%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 76% at 50% 38%, #000 20%, transparent 100%);
  pointer-events: none;
}

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

.hero-glow-emerald {
  width: 580px;
  height: 380px;
  top: -120px;
  left: 38%;
  transform: translateX(-50%);
  background: var(--emerald);
  opacity: 0.22;
}

.hero-glow-ecosystem {
  width: 420px;
  height: 280px;
  top: 40px;
  right: -80px;
  background: var(--cyan);
  opacity: 0.1;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(19, 27, 46, 0.88);
  border: 1px solid rgba(16, 185, 129, 0.32);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  color: var(--emerald-light);
}

.hero-ecosystem-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(19, 27, 46, 0.72);
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.hero-ecosystem-pill:hover {
  border-color: rgba(6, 182, 212, 0.5);
  color: var(--text-main);
}

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

.hero-title {
  font-size: clamp(2.35rem, 4.8vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.09;
  margin-bottom: 1.35rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 580px;
}

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

/* Botones de tienda (Google Play / App Store) */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.78rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-btn--primary {
  border-color: rgba(16, 185, 129, 0.36);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(19, 27, 46, 0.92) 100%);
}

.store-btn:hover {
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(16, 185, 129, 0.28);
}

.store-icon {
  width: 24px;
  height: 24px;
  fill: var(--emerald-light);
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.store-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.badge-coming-soon {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.16rem 0.45rem;
  border-radius: 5px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
}

/* Badges técnicos en JetBrains Mono */
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-bottom: 2rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.64rem;
  border-radius: 6px;
  background: rgba(19, 27, 46, 0.85);
  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: var(--emerald-light);
}

/* Métricas clave del Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Mockup del teléfono en Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 288px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow:
    0 32px 64px -20px rgba(0, 0, 0, 0.8),
    0 0 48px -16px rgba(16, 185, 129, 0.28);
}

.phone-screen {
  width: 100%;
  border-radius: 28px;
  display: block;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(19, 27, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.65);
  max-width: 225px;
}

.badge-left {
  left: -26px;
  bottom: 84px;
}

.badge-right {
  right: -22px;
  top: 72px;
}

.badge-icon-svg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--emerald-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.25;
}

.badge-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ==================== SEGURIDAD Y PILARES ==================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.security-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

.security-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 22px 44px -20px rgba(16, 185, 129, 0.22);
}

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

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--emerald-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.45);
}

.security-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.security-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==================== GALERÍA DE CAPTURAS ==================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.showcase-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}

.showcase-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  margin-bottom: 0.95rem;
}

.showcase-img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

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

/* ==================== FREE vs PRO ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.pricing-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: border-color var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card.featured {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-surface) 38%);
  box-shadow: 0 24px 52px -24px rgba(16, 185, 129, 0.28);
}

.pricing-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: 1rem;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pricing-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.pricing-card.featured .price-amount {
  color: var(--emerald-light);
}

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

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li.is-muted {
  color: var(--text-muted);
  opacity: 0.58;
}

.feature-check {
  color: var(--emerald);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-cross {
  color: var(--text-muted);
  flex-shrink: 0;
}

.pricing-footer-box {
  margin-top: auto;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid var(--border-subtle);
}

.pricing-card.featured .pricing-footer-box {
  border-color: rgba(16, 185, 129, 0.28);
}

.pricing-store-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.pricing-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pricing-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
}

.pricing-store-icon {
  width: 15px;
  height: 15px;
  fill: var(--emerald-light);
}

.pricing-pro-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--emerald-light);
  margin-bottom: 0.5rem;
}

.pricing-pro-box-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.95rem;
}

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

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

.faq-card:hover {
  border-color: rgba(16, 185, 129, 0.32);
}

.faq-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--text-main);
}

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

/* ==================== CONTACTO (ESTILO DEI LABS CON ÉNFASIS ESMERALDA) ==================== */
.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.1rem;
}

.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: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--emerald-light);
  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(--emerald-light);
}

.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(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.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(--emerald);
  border-color: var(--emerald);
  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='%23052016' 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(--emerald);
  outline-offset: 2px;
}

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

.inline-link-btn:hover {
  color: #6EE7B7;
}

/* 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(5, 32, 22, 0.28);
  border-top-color: #052016;
  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 CORPORATIVO ==================== */
.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: 380px;
}

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

.footer-ecosystem-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  background: rgba(19, 27, 46, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.24);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer-ecosystem-link:hover {
  border-color: rgba(6, 182, 212, 0.55);
  color: var(--text-main);
}

.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(--emerald-light);
}

.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-copy a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-copy a:hover {
  color: var(--emerald-light);
}

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

/* ==================== 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(--emerald-border);
}

.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 (privacy.html) ==================== */
.legal-hero {
  padding-block: 4rem 2.75rem;
  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-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.legal-content {
  padding-block: 3.25rem 5rem;
}

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

.legal-highlight {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid var(--emerald);
  padding: 1.35rem 1.55rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-highlight strong {
  color: var(--text-main);
}

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

.legal-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

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

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

.legal-list {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-list strong {
  color: var(--text-main);
}

.lang-section {
  display: none;
}

.lang-section.active {
  display: block;
}

/* ==================== 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: 1080px) {
  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 720px;
  }

  .badge-left {
    left: 10px;
  }

  .badge-right {
    right: 10px;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    padding-block: 4.25rem 4rem;
  }

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

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-badge {
    display: none;
  }

  .pricing-card,
  .contact-form-card,
  .legal-block {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .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;
  }
}
