/* =============================================================================
   GESTACKS — Sistema de tokens "Expediente"
   Inspirado en archivadores, carpetas y expedientes de oficina: cada sección
   se comporta como una pieza de papelería real (pestañas, fólders, sellos).
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Outfit:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Tinta (texto / marca) */
  --ink: #15293D;
  --ink-soft: #2E4A63;
  --ink-faint: rgba(21, 41, 61, 0.6);
  --ink-mute: rgba(21, 41, 61, 0.42);

  /* Papel (fondos — nunca blanco puro) */
  --paper: #F1EEE3;
  --paper-deep: #E7E1CE;
  --paper-card: #FAF8EF;
  --paper-card-deep: #F4F0E2;

  /* Kraft / Fólder (acento estructural) */
  --folder: #C68A42;
  --folder-dark: #A06E30;
  --folder-light: #EFD9AE;

  /* Sello (acento de acción) */
  --stamp: #BC3B26;
  --stamp-dark: #8F2A1A;
  --stamp-light: #F3DAD2;

  /* Verificación / éxito */
  --ok: #2F7A4D;
  --ok-light: #DEEEDF;

  /* Líneas y sombras */
  --line: rgba(21, 41, 61, 0.14);
  --line-strong: rgba(21, 41, 61, 0.26);
  --shadow-sm: 0 1px 2px rgba(21, 41, 61, 0.06);
  --shadow-md: 0 6px 18px rgba(21, 41, 61, 0.10);
  --shadow-lg: 0 18px 40px rgba(21, 41, 61, 0.14);
  --shadow-xl: 0 30px 60px rgba(21, 41, 61, 0.22);

  --transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.05);
  --font-display: 'Space Grotesk', 'Outfit', sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21,41,61,0.045) 1px, transparent 0);
  background-size: 26px 26px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

a { color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5.5rem 0; }

/* Etiqueta tipo "código de expediente" — usada como recurso estructural,
   no decorativo: cada sección recibe un folio, como en un archivo real. */
.doc-folio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--folder-dark);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.doc-folio::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stamp);
  flex-shrink: 0;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-card);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--stamp);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper-card);
}

/* =========================== NAVBAR — pestañas de fólder ================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(241, 238, 227, 0.92);
  backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid var(--line);
}

.navbar-container {
  max-width: 1280px;
  height: 4.4rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand { display: flex; align-items: center; gap: 0.7rem; }
.navbar-logo { width: 2rem; height: 2rem; object-fit: contain; }
.navbar-company-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 0.35rem;
}

.navbar-menu a, .navbar-link {
  display: block;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-faint);
  transition: var(--transition);
  font-size: 0.84rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.5rem 0.5rem 0 0;
  position: relative;
}

.navbar-menu a:hover, .navbar-link:hover, .navbar-link.active {
  color: var(--ink);
  background: var(--paper-card);
}

.navbar-menu a:hover::after, .navbar-link:hover::after, .navbar-link.active::after {
  content: '';
  position: absolute;
  left: 0.6rem; right: 0.6rem; bottom: -1px;
  height: 2px;
  background: var(--stamp);
}

.navbar-login-btn {
  padding: 0.55rem 1.3rem;
  background: var(--stamp);
  color: var(--paper-card);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.navbar-login-btn:hover {
  background: var(--stamp-dark);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* =========================== HERO ========================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -8%;
  width: 46rem; height: 46rem;
  background: radial-gradient(circle, var(--folder-light) 0%, transparent 68%);
  opacity: 0.55;
  z-index: 0;
}

.hero .container { position: relative; z-index: 2; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge::before {
  content: '📁';
  font-size: 0.85rem;
}

.hero-title { margin-bottom: 1.3rem; }
.hero-title .accent { color: var(--stamp); }

.hero-desc {
  font-size: 1.08rem;
  color: var(--ink-faint);
  line-height: 1.65;
  margin-bottom: 2.1rem;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Visual del hero: pila de documentos ilustrada con escaneo --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.doc-stack {
  position: relative;
  width: 280px;
  height: 360px;
}

.doc-sheet {
  position: absolute;
  inset: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-md);
}
.doc-sheet.s1 { transform: rotate(-7deg) translate(-18px, 10px); }
.doc-sheet.s2 { transform: rotate(4deg) translate(14px, 4px); background: var(--paper-card-deep); }
.doc-sheet.s3 {
  transform: none;
  z-index: 3;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
}

.doc-sheet.s3::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stamp), transparent);
  box-shadow: 0 0 14px 2px var(--stamp);
  animation: scanline 3.2s ease-in-out infinite;
}

@keyframes scanline {
  0%, 100% { top: 6%; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 92%; opacity: 1; }
  60% { opacity: 0; }
}

.doc-line { height: 9px; border-radius: 4px; background: var(--line); }
.doc-line.w1 { width: 70%; background: var(--folder-light); height: 14px; margin-bottom: 0.3rem; }
.doc-line.w2 { width: 95%; }
.doc-line.w3 { width: 88%; }
.doc-line.w4 { width: 60%; }
.doc-chip {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ok-light);
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 2rem;
}
.doc-chip::before { content: '●'; font-size: 0.5rem; }

.doc-tag {
  position: absolute;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.1rem;
  z-index: 4;
}

.doc-tag.search {
  top: -1.2rem; right: -2.6rem;
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.doc-tag.search svg { width: 16px; height: 16px; stroke: var(--stamp); flex-shrink: 0; }

.doc-tag.metric {
  bottom: -1.4rem; left: -2.8rem;
  text-align: left;
}
.doc-tag.metric .metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.doc-tag.metric .metric-label {
  font-size: 0.66rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================== FEATURE ROW =================================== */
.feature-row {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-flex {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1;
  min-width: 200px;
  text-align: left;
  padding: 0.4rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 2.9rem; height: 2.9rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.feature-icon svg { width: 1.3rem; height: 1.3rem; stroke: var(--stamp); stroke-width: 1.8; fill: none; }
.feature-item h4 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.82rem; color: var(--ink-faint); }

/* =========================== ABOUT ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-title { margin-bottom: 1.1rem; }
.about-desc { color: var(--ink-faint); line-height: 1.75; margin-bottom: 1.7rem; }

.about-stats-mini { display: flex; gap: 2.2rem; }
.about-stat-number { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--stamp); }
.about-stat-label { font-size: 0.74rem; color: var(--ink-mute); }

/* Carpeta ilustrada para "about" */
.folder-visual {
  position: relative;
  background: var(--folder-light);
  border-radius: 1.4rem;
  padding: 2.6rem 2.2rem 2.2rem;
  box-shadow: var(--shadow-md);
}

.folder-tabs-row { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.folder-tab-mini {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--paper-card);
  color: var(--ink-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem 0.4rem 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
}
.folder-tab-mini.active { background: var(--ink); color: var(--paper-card); }

.folder-visual-body {
  background: var(--paper-card);
  border-radius: 0 0.9rem 0.9rem 0.9rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
}

.folder-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.folder-row:last-child { border-bottom: none; }
.folder-row svg { width: 18px; height: 18px; stroke: var(--folder-dark); flex-shrink: 0; }
.folder-row span { font-size: 0.84rem; font-weight: 500; color: var(--ink-soft); }
.folder-row small { margin-left: auto; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-mute); }

/* =========================== PRICING ======================================= */
.pricing-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-header { text-align: center; margin-bottom: 3rem; }
.pricing-header .doc-folio { justify-content: center; display: inline-flex; }
.pricing-title { margin-bottom: 0.6rem; }
.pricing-subtitle {
  color: var(--ink-faint);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Banner plan gratis --- */
.pricing-free-banner {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.8rem 2.2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pricing-free-banner:hover { box-shadow: var(--shadow-md); }

.pricing-free-banner__content { display: flex; align-items: center; gap: 1.8rem; }
.pricing-free-banner__icon {
  width: 3.2rem; height: 3.2rem;
  background: var(--folder-light);
  border-radius: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pricing-free-banner__icon svg { width: 1.5rem; height: 1.5rem; stroke: var(--folder-dark); }
.pricing-free-banner__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-free-banner__desc { font-size: 0.83rem; color: var(--ink-faint); margin-bottom: 0.65rem; }
.pricing-free-banner__features { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.pricing-free-banner__features span { font-size: 0.76rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.pricing-free-banner__features span i { color: var(--ok); font-size: 0.62rem; }
.pricing-free-banner__action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.pricing-free-banner__price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.pricing-free-banner__price span { font-size: 0.85rem; font-weight: 500; color: var(--ink-mute); margin-left: 0.15rem; }
.pricing-btn--free {
  background: var(--ink); color: var(--paper-card); padding: 0.6rem 1.4rem; font-size: 0.83rem;
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  border-radius: 0.55rem; text-decoration: none; font-weight: 700; transition: var(--transition);
}
.pricing-btn--free:hover { background: var(--stamp); transform: translateY(-2px); }

/* --- EXPEDIENTE: explorador interactivo de planes (la "guía") --- */
.plan-explorer {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.plan-tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.9rem 0.9rem 0;
  background: var(--paper-card-deep);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.plan-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 0.7rem 1.3rem;
  border-radius: 0.6rem 0.6rem 0 0;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  top: 1px;
}

.plan-tab .tab-price {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ink-mute);
  margin-top: 0.1rem;
}

.plan-tab:hover { color: var(--ink); background: var(--paper-card); }

.plan-tab.active {
  background: var(--paper-card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 -2px 0 0 var(--stamp) inset;
}
.plan-tab.active .tab-price { color: var(--stamp); }

.plan-panels { position: relative; }
.plan-panel { display: none; }
.plan-panel.active { display: block; animation: panelIn 0.4s ease; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

/* Visor de medios (capturas / video del plan) */
.plan-media {
  position: relative;
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.plan-media-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.plan-media-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.plan-media-slide {
  min-width: 100%; width: 100%; height: 100%; flex-shrink: 0;
  position: relative;
}

.plan-media-slide img,
.plan-media-slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Placeholder elegante mientras no hay capturas reales */
.media-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem;
  background:
    repeating-linear-gradient(135deg, var(--paper-deep), var(--paper-deep) 12px, var(--paper-card-deep) 12px, var(--paper-card-deep) 24px);
  color: var(--ink-mute);
}
.media-placeholder svg { width: 2.4rem; height: 2.4rem; stroke: var(--folder-dark); opacity: 0.7; }
.media-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  color: var(--ink-soft);
}

.plan-media-caption {
  position: absolute;
  left: 0.8rem; bottom: 0.8rem;
  background: rgba(21,41,61,0.78);
  color: var(--paper-card);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.plan-media-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem;
  background: rgba(250,248,239,0.92);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 4;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.plan-media-nav:hover { background: var(--paper-card); transform: translateY(-50%) scale(1.08); }
.plan-media-nav svg { width: 0.9rem; height: 0.9rem; stroke: var(--ink); }
.plan-media-prev { left: 0.6rem; }
.plan-media-next { right: 0.6rem; }

.plan-media-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  overflow-x: auto;
}

.plan-media-thumb {
  flex-shrink: 0;
  width: 4.4rem; height: 2.8rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--line);
  cursor: pointer;
  background: var(--paper-card-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-mute);
  transition: var(--transition);
  overflow: hidden;
  text-align: center;
  padding: 0.2rem;
}
.plan-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plan-media-thumb.active { border-color: var(--stamp); color: var(--stamp); font-weight: 700; }

/* Info lateral del expediente */
.plan-info {
  padding: 2rem 2.1rem;
  display: flex;
  flex-direction: column;
}

.plan-info-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.plan-info-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.plan-info-badge {
  background: var(--ok-light); color: var(--ok);
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem; border-radius: 2rem;
}
.plan-info-desc { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.1rem; }

.plan-info-price {
  display: flex; align-items: baseline; gap: 0.15rem;
  padding-bottom: 1.1rem; margin-bottom: 1.1rem;
  border-bottom: 1px dashed var(--line-strong);
}
.plan-info-amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; }
.plan-info-period { font-size: 0.78rem; color: var(--ink-mute); font-weight: 500; }

.plan-info-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; flex: 1; }
.plan-info-features li { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: flex-start; gap: 0.55rem; line-height: 1.35; }
.plan-info-features li svg { width: 15px; height: 15px; stroke: var(--stamp); flex-shrink: 0; margin-top: 0.12rem; }
.plan-info-features li.included-from { color: var(--ink-mute); font-style: italic; font-size: 0.78rem; padding-top: 0.2rem; border-top: 1px solid var(--line); margin-top: 0.1rem; }

.plan-info .pricing-btn { width: 100%; }

/* Botones de planes (reutilizados) */
.pricing-btn {
  display: block; width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 0.6rem;
  font-weight: 700; font-size: 0.88rem;
  text-align: center; text-decoration: none;
  transition: var(--transition);
  cursor: pointer; border: none; font-family: var(--font-body);
}
.pricing-btn--basic     { background: var(--ink); color: var(--paper-card); }
.pricing-btn--standard  { background: var(--ink); color: var(--paper-card); }
.pricing-btn--premium   { background: var(--stamp); color: var(--paper-card); }
.pricing-btn--enterprise{ background: var(--folder-dark); color: var(--paper-card); }
.pricing-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.05); }

.plan-explorer-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 1rem;
}

/* =========================== BENEFITS ====================================== */
.benefits-header { text-align: center; margin-bottom: 3rem; }
.section-subtitle { color: var(--ink-faint); font-size: 1rem; margin-top: 0.4rem; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
}

.benefit-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.9rem;
  transition: var(--transition);
  position: relative;
}
.benefit-card::before {
  content: '';
  position: absolute; top: 0; left: 1.4rem;
  width: 2.2rem; height: 6px;
  background: var(--folder);
  border-radius: 0 0 4px 4px;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--folder-light); }

.benefit-icon {
  width: 2.9rem; height: 2.9rem;
  background: var(--folder-light);
  border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.benefit-icon svg { width: 1.3rem; height: 1.3rem; stroke: var(--folder-dark); stroke-width: 1.8; fill: none; }
.benefit-title { font-size: 1.12rem; margin-bottom: 0.45rem; }
.benefit-description { color: var(--ink-faint); font-size: 0.87rem; line-height: 1.6; }

/* =========================== PROJECTS ======================================= */
.projects-section { background: var(--paper); padding: 5.5rem 0 6rem; }
.projects-header { text-align: center; margin-bottom: 3.2rem; }
.projects-header .doc-folio { justify-content: center; display: inline-flex; }
.projects-title { margin-bottom: 0.5rem; }
.projects-subtitle { color: var(--ink-faint); font-size: 1rem; max-width: 480px; margin: 0 auto; }

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

.project-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--folder-light); }

.project-slider { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-deep); flex-shrink: 0; width: 100%; }
.project-slides-track { display: flex; width: 100%; height: 100%; transition: transform 0.45s cubic-bezier(0.25,0.8,0.25,1); will-change: transform; }
.project-slide { min-width: 100%; width: 100%; height: 100%; flex-shrink: 0; flex-grow: 0; }
.project-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.1rem; height: 2.1rem;
  background: rgba(250,248,239,0.94); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
  box-shadow: var(--shadow-sm); transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease; opacity: 0;
}
.project-card:hover .slider-btn, .project-card .slider-btn.always-visible { opacity: 1; }
.slider-btn:hover { background: var(--paper-card); transform: translateY(-50%) scale(1.1); }
.slider-btn svg { width: 1rem; height: 1rem; stroke: var(--ink); }
.slider-btn-prev { left: 0.6rem; } .slider-btn-next { right: 0.6rem; }

.slider-dots { position: absolute; bottom: 0.65rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.35rem; z-index: 10; }
.dot { width: 6px; height: 6px; border-radius: 50%; border: none; background: rgba(250,248,239,0.55); cursor: pointer; padding: 0; transition: background 0.25s ease, transform 0.25s ease; }
.dot.active { background: var(--paper-card); transform: scale(1.3); }

.slider-counter {
  position: absolute; top: 0.65rem; right: 0.75rem;
  background: rgba(21,41,61,0.5); color: var(--paper-card);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 2rem; z-index: 10; letter-spacing: 0.04em; backdrop-filter: blur(4px);
}

.zoom-btn {
  position: absolute; top: 0.65rem; left: 0.75rem; width: 2rem; height: 2rem;
  background: rgba(21,41,61,0.55); border: 1px solid rgba(250,248,239,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
  backdrop-filter: blur(4px); transition: all 0.25s ease; opacity: 0; transform: scale(0.9);
}
.project-card:hover .zoom-btn { opacity: 1; transform: scale(1); }
.zoom-btn:hover { background: rgba(21,41,61,0.78); transform: scale(1.1) !important; }
.zoom-btn svg { width: 0.9rem; height: 0.9rem; stroke: var(--paper-card); }

.project-info { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.project-meta { display: flex; align-items: center; gap: 0.5rem; }
.project-year { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--ink-mute); }
.project-category { font-size: 0.68rem; font-weight: 700; color: var(--folder-dark); background: var(--folder-light); padding: 0.15rem 0.65rem; border-radius: 2rem; }
.project-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0; }
.project-desc { font-size: 0.85rem; color: var(--ink-faint); line-height: 1.6; margin: 0; flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.tag { font-size: 0.68rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 0.4rem; letter-spacing: 0.02em; font-family: var(--font-mono); }
.tag-blue   { background: #E4EEF7; color: #1A5FA8; }
.tag-green  { background: var(--ok-light); color: var(--ok); }
.tag-purple { background: #EEEAF8; color: #5B3FC4; }
.tag-orange { background: #FBEADA; color: #A0561A; }
.tag-gray   { background: var(--paper-deep); color: var(--ink-soft); }

.project-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--line); margin-top: auto; }
.project-status { display: flex; align-items: center; gap: 0.4rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-live { background: var(--ok); box-shadow: 0 0 0 3px rgba(47,122,77,0.18); }
.status-beta { background: var(--folder); box-shadow: 0 0 0 3px rgba(198,138,66,0.18); }
.status-dev  { background: var(--ink-mute); box-shadow: 0 0 0 3px rgba(21,41,61,0.12); }
.status-text { font-size: 0.7rem; font-weight: 600; color: var(--ink-faint); }

/* =========================== CTA FINAL ====================================== */
.cta-block {
  background: var(--ink);
  border-radius: 1.4rem;
  padding: 3.5rem;
  text-align: center;
  color: var(--paper-card);
  position: relative;
  overflow: hidden;
}
.cta-block::after {
  content: '';
  position: absolute;
  width: 9rem; height: 9rem;
  border: 8px solid rgba(250,248,239,0.06);
  border-radius: 50%;
  right: -3rem; top: -3rem;
}
.cta-block h2 { color: var(--paper-card); margin-bottom: 0.8rem; }
.cta-block .btn { background: var(--paper-card); color: var(--ink); margin-top: 1rem; }
.cta-block .btn:hover { background: var(--stamp); color: var(--paper-card); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

.cta-stamp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4.4rem; height: 4.4rem;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  transform: rotate(-8deg);
  margin-bottom: 1.4rem;
}
.cta-stamp svg { width: 1.8rem; height: 1.8rem; stroke: var(--stamp); }

/* =========================== FOOTER ========================================= */
.footer {
  background: var(--paper-deep);
  padding: 2.2rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--stamp); }

/* =========================== ANIMACIONES ===================================== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .doc-sheet.s3::before { animation: none; }
}

/* =========================== RESPONSIVE ====================================== */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-panel-grid { grid-template-columns: 1fr; }
  .plan-media { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about-stats-mini { justify-content: center; }
  .folder-visual { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none; position: absolute; top: 4.4rem; left: 0; right: 0;
    background: var(--paper-card); flex-direction: column; padding: 1.2rem; gap: 0.3rem;
    box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--line); z-index: 999;
  }
  .navbar-menu.active { display: flex; }
  .navbar-menu a { border-radius: 0.5rem; }
  .mobile-menu-btn { display: block; }
  .container { padding: 0 1.4rem; }
  section { padding: 3.2rem 0; }
  .feature-flex { flex-direction: column; }
  .feature-item { max-width: 100%; }
  .cta-block { padding: 2.2rem 1.5rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .pricing-free-banner__content { flex-direction: column; text-align: center; gap: 1.2rem; }
  .pricing-free-banner__features { justify-content: center; }
  .pricing-free-banner__action { align-items: center; }
  .plan-tabs { padding: 0.7rem 0.7rem 0; }
  .plan-tab { padding: 0.6rem 1rem; font-size: 0.72rem; }
  .plan-info { padding: 1.6rem; }
  .doc-tag.search, .doc-tag.metric { position: static; margin-top: 1rem; display: inline-flex; }
}

/* =============================================================================
   CONTACT PAGE
   ============================================================================= */
.contact-hero {
  padding: 7.5rem 0 3rem;
  background: var(--paper);
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.contact-hero-badge {
  display: inline-block;
  background: var(--paper-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.contact-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-hero-description {
  max-width: 540px;
  margin: 0 auto;
  color: var(--ink-faint);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-section { padding: 4rem 0 6rem; background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 2.6rem; }

.contact-card {
  background: var(--paper-card);
  border-radius: 1.3rem;
  padding: 2.1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.contact-form-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3rem; }
.contact-form-subtitle { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-strong); }

.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; font-weight: 600; font-size: 0.78rem; margin-bottom: 0.4rem; color: var(--ink-soft); }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 0.6rem;
  font-family: inherit; font-size: 0.9rem; transition: var(--transition);
  background: var(--paper-card-deep); color: var(--ink);
}
.form-input::placeholder { color: var(--ink-mute); }
.form-input:focus { outline: none; border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-light); background: var(--paper-card); }
.form-textarea { resize: vertical; min-height: 100px; }

.button-large { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem; font-size: 0.92rem; }
.btn-arrow { font-size: 1.1rem; transition: transform 0.2s ease; }
.button-primary:hover .btn-arrow { transform: translateX(4px); }

.status-message { margin-top: 1rem; padding: 0.75rem; border-radius: 0.6rem; text-align: center; font-size: 0.85rem; font-weight: 500; display: none; }
.status-message.loading { display: block; background: var(--folder-light); color: var(--folder-dark); }
.status-message.success { display: block; background: var(--ok-light); color: var(--ok); }
.status-message.error { display: block; background: var(--stamp-light); color: var(--stamp-dark); }

.info-card { background: var(--paper-card-deep); border-radius: 1.3rem; padding: 2rem; border: 1px solid var(--line); }
.info-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.info-subtitle { color: var(--ink-faint); font-size: 0.8rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-strong); }

.info-items { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 1rem; }
.info-item { display: flex; align-items: center; gap: 1rem; }
.info-icon { width: 2.5rem; height: 2.5rem; background: var(--paper-card); border-radius: 0.7rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.info-icon svg { stroke: var(--stamp); }
.info-details { flex: 1; }
.info-label { font-size: 0.68rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.03em; font-family: var(--font-mono); }
.info-value { font-weight: 600; font-size: 0.9rem; color: var(--ink); }

.contact-back { text-align: center; margin-top: 1.4rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink-faint); text-decoration: none; font-size: 0.8rem; font-weight: 600; transition: var(--transition); }
.back-link:hover { color: var(--stamp); transform: translateX(-4px); }

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-hero { padding: 6.5rem 0 2rem; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card, .info-card { padding: 1.5rem; }
  .contact-hero-title { font-size: 1.85rem; }
}

/* =========================== LIGHTBOX ======================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 41, 61, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  background: rgba(250, 248, 239, 0.15);
  border: 1px solid rgba(250, 248, 239, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--paper-card);
}
.lightbox-close:hover {
  background: rgba(250, 248, 239, 0.3);
  transform: scale(1.1);
}
.lightbox-close svg {
  width: 1.2rem;
  height: 1.2rem;
}

.lightbox-content {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lightbox-nav {
  width: 2.8rem;
  height: 2.8rem;
  background: rgba(250, 248, 239, 0.15);
  border: 1px solid rgba(250, 248, 239, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--paper-card);
}
.lightbox-nav:hover {
  background: rgba(250, 248, 239, 0.3);
  transform: scale(1.1);
}
.lightbox-nav svg {
  width: 1rem;
  height: 1rem;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(250, 248, 239, 0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.lightbox-open {
  overflow: hidden;
}

/* =========================== ZOOM EN PLANES ================================= */
.plan-media-slide {
  position: relative;
}

.plan-zoom-btn {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: rgba(21, 41, 61, 0.55);
  border: 1px solid rgba(250, 248, 239, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
  opacity: 0;
  transform: scale(0.9);
}

.plan-media-slide:hover .plan-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.plan-zoom-btn:hover {
  background: rgba(21, 41, 61, 0.78) !important;
  transform: scale(1.1) !important;
}

.plan-zoom-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: var(--paper-card);
}

.plan-info-badge--institutional {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.pricing-btn--institutional {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.pricing-btn--institutional:hover {
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

.plan-info--institutional {
    border-top: 3px solid #8b5cf6;
}

/* ═══════════════════════════════════════════════════════════
   SELECTOR DE PERÍODO — Estilo expediente
   ═══════════════════════════════════════════════════════════ */
.billing-switch {
    display: inline-flex;
    background: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    padding: 0.3rem;
    gap: 0.2rem;
}

.billing-switch-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-faint);
    background: transparent;
    border: none;
    padding: 0.55rem 1.2rem;
    border-radius: 0.45rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.billing-switch-btn:hover {
    color: var(--ink);
    background: var(--paper-card-deep);
}

.billing-switch-btn.active {
    background: var(--paper-card);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.billing-switch-btn .billing-discount {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.billing-switch-btn.active .billing-discount {
    color: var(--stamp);
}

.plan-info-total {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ok);
    font-weight: 600;
    margin-top: 0.3rem;
    letter-spacing: 0.01em;
}

.plan-info-savings {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--folder-dark);
    font-weight: 600;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   VALIDACIÓN DE FORMULARIO DE CONTACTO
   ═══════════════════════════════════════════════════════════ */
.input-error {
    border-color: var(--stamp) !important;
    box-shadow: 0 0 0 3px var(--stamp-light) !important;
    animation: shake 0.4s ease;
}

.field-error {
    display: block;
    color: var(--stamp-dark);
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
    animation: fadeIn 0.2s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}