/* ==========================================================================
   AVSoft Perú — Estilos Globales & Sistema de Diseño Minimalista B2B (Light Theme)
   Inspirado en Stripe, Linear y Frappe / ERPNext
   ========================================================================== */

:root {
  /* Paleta Base */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-subtle: #F1F5F9;
  --bg-input: #FFFFFF;

  /* Bordes */
  --border: #E2E8F0;
  --border-focus: #2563EB;
  --border-subtle: #EDF2F7;

  /* Textos */
  --text-main: #0F172A;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Acentos de Marca */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-border: #BFDBFE;

  /* Acento SUNAT */
  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-light: #ECFDF5;
  --emerald-border: #A7F3D0;
  --emerald-text: #065F46;

  /* Tipografías */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Dimensiones */
  --container-max: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Sombras Modernas */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);

  /* Transiciones */
  --transition: 0.2s ease;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(5, 150, 105, 0.03) 0%, transparent 50%);
  background-repeat: no-repeat;
  color: var(--text-main);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-body);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navbar (Una sola línea, limpio, sin desbordes)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo-brand img {
  height: 34px;
  width: auto;
}

.logo-brand span {
  font-weight: 800;
}

.logo-brand .brand-highlight {
  color: var(--primary);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition);
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 6px;
  cursor: pointer;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

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

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA59;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-sunat {
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald);
  animation: pulse-dot 2s infinite;
}

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

/* ==========================================================================
   Hero Section (Limpio, Panorámico, Sin Menú Izquierdo Apretado)
   ========================================================================== */
.hero-section {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  max-width: 860px;
  margin: 0 auto 18px;
}

.hero-title .highlight-blue {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-body);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Panorámica del Dashboard (Diseño Moderno de 1 Solo Panel) */
.hero-mockup-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.mockup-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mockup-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mockup-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #FAFAFC;
}

/* KPIs de Alto Impacto */
.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mockup-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-xs);
}

.mockup-kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mockup-kpi-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.mockup-kpi-badge {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--emerald-text);
  margin-top: 2px;
}

/* Mini Comprobante SUNAT */
.mockup-invoice-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.invoice-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.invoice-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--emerald-light);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.invoice-number {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.invoice-client {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.invoice-amount-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.invoice-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  background: var(--emerald-light);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

/* ==========================================================================
   Trust Strip (Barra de Valor Horizontal)
   ========================================================================== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon.sunat {
  background: var(--emerald-light);
  color: var(--emerald);
}

.trust-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.trust-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.section {
  padding: 68px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.section-badge {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.975rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Casos en Operación (Retail POS & Distribución SUNAT)
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  align-self: flex-start;
}

.case-badge.emerald {
  background: var(--emerald-light);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

.case-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.case-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tag {
  font-size: 0.725rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ==========================================================================
   Banner de Consulta de Comprobantes (CPE)
   ========================================================================== */
.cpe-banner {
  margin-top: 32px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.cpe-banner:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
}

.cpe-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cpe-banner-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cpe-banner-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 3px;
}

.cpe-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.cpe-banner-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  margin: 0;
}

.btn-outline-cpe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-outline-cpe:hover {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .cpe-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .btn-outline-cpe {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Soluciones Core (Grid 2x2 Limpio & Directo)
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.solution-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-icon-box.sunat {
  background: var(--emerald-light);
  color: var(--emerald);
}

.solution-icon-box.cyan {
  background: #E0F2FE;
  color: #0284C7;
}

.solution-icon-box.purple {
  background: #F3E8FF;
  color: #7C3AED;
}

.solution-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.solution-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.solution-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.solution-feature-item svg {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.solution-tag {
  font-size: 0.725rem;
  padding: 3px 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Comparativa Ágil (4 Tarjetas de Valor vs Tradicionales)
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.comparison-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.comparison-title {
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.comparison-avsoft {
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.comparison-avsoft-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--emerald-text);
  margin-bottom: 4px;
}

.comparison-avsoft-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald-text);
}

.comparison-other {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.comparison-other-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comparison-other-value {
  font-size: 0.85rem;
  color: #991B1B;
  font-weight: 600;
}

/* ==========================================================================
   Equipo & Filosofía (Trato Directo con Ingenieros)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.team-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-avatar.emerald {
  background: linear-gradient(135deg, #059669, #2563EB);
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.team-role {
  font-size: 0.825rem;
  color: var(--primary);
  font-weight: 600;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 16px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-skill-badge {
  font-size: 0.725rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ==========================================================================
   Preguntas Frecuentes (FAQ Esencial de 3 Puntos)
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: #CBD5E1;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  padding: 0 20px;
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 16px;
}

/* ==========================================================================
   Contacto Ágil & Agendamiento
   ========================================================================== */
.contact-card-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.contact-left {
  background: #F8FAFC;
  border-right: 1px solid var(--border);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.contact-left-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.contact-left-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 20px;
}

.direct-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.direct-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.green {
  color: #25D366;
}

.channel-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

.channel-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.cal-booking-box {
  background: #FFFFFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
  display: flex;
  flex-direction: column;
}

.cal-booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  align-self: flex-start;
}

.cal-booking-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.cal-booking-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cal-booking-desc {
  font-size: 0.8125rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn-cal {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  font-family: inherit;
  cursor: pointer;
}

.btn-cal * {
  pointer-events: none;
}

.btn-cal:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.cal-booking-note {
  display: block;
  text-align: center;
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.contact-right {
  padding: 34px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition);
  font-size: 0.875rem;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.form-alert {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  display: none;
  font-weight: 500;
}

.form-alert.success {
  background: var(--emerald-light);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

.form-alert.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.form-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.form-trust-note svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  padding: 36px 0 24px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 0.775rem;
  color: var(--text-light);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-wrap {
    grid-template-columns: 1fr;
  }
  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    z-index: 1001;
  }

  .mockup-kpis {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}
