/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #3D2B6B;
  --purple-light: #5C4490;
  --purple-dark: #2A1D4E;
  --purple-bg: #EDEAF5;
  --teal: #0D7377;
  --teal-dark: #095E62;
  --teal-light: #D0EBEC;
  --blue: #0F2744;
  --blue-light: #E0E8F4;
  --indigo: #1E3A6E;
  --indigo-light: #E0E8F4;
  --pink: #8B1A4A;
  --pink-light: #F5E0EA;
  --orange: #C2650A;
  --orange-light: #FEF0DC;
  --red: #991B1B;
  --red-light: #FDEAEA;
  --green: #166534;
  --green-light: #DCFCE7;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --transition: .2s ease;
}

html { font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 0;
}

.sidebar-logo {
  width: 155px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  position: absolute;
  right: 12px;
  top: 20px;
}

.sidebar-subbrand {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 8px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: .1em;
  padding: 12px 8px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255,255,255,.06);
  color: white;
}

.nav-item.active {
  background: linear-gradient(90deg, #0F2744 0%, #0D7377 100%);
  color: white;
}

.nav-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.version-badge {
  font-size: 10px;
  color: var(--gray-500);
  text-align: center;
}

/* ===== OVERLAY ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  z-index: 50;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-600);
  padding: 4px;
}

.topbar-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.topbar-badge {
  font-size: 11px;
  background: var(--purple-bg);
  color: var(--purple);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

/* ===== PAGES ===== */
.page {
  display: none;
  padding: 24px 22px;
  max-width: 1100px;
}

.page.active {
  display: block;
  animation: fadeIn .2s ease;
}

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

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 22px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.page-header h2 i { color: var(--purple); }
.page-header p { color: var(--gray-500); font-size: 14px; }

/* ===== HERO CARD ===== */
.hero-card {
  background: linear-gradient(135deg, #07192E 0%, #0F2744 55%, #0D7377 100%);
  border-radius: 20px;
  padding: 36px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}

.hero-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-highlight { color: #FDE68A; }

.hero-desc {
  font-size: 14px;
  opacity: .85;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
}

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

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #FDE68A;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  opacity: .7;
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: white;
  color: #0F2744;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: white;
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}

.btn-secondary:hover { background: rgba(255,255,255,.25); }

.hero-octopus {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: .22;
}

.hero-octopus img {
  width: 190px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.product-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.pc-icon.teal { background: var(--teal); }
.pc-icon.blue { background: var(--blue); }
.pc-icon.indigo { background: var(--indigo); }
.pc-icon.pink { background: var(--pink); }
.pc-icon.orange { background: var(--orange); }
.pc-icon.navy { background: #0F2744; }

.pc-info { flex: 1; }
.pc-info h3 { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.pc-info p { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }

.pc-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.ptag {
  font-size: 10px;
  background: var(--purple-bg);
  color: var(--purple);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.pc-arrow { color: var(--gray-300); font-size: 12px; }

/* ===== NOTA IMPORTANTE ===== */
.nota-importante {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-700);
}

.nota-importante i { color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.nota-importante em { color: var(--blue); font-style: normal; font-weight: 600; }
.nota-importante strong { color: var(--gray-800); }

.mt-4 { margin-top: 20px; }

/* ===== GAL·IA CHAT ASISTENTE ===== */

/* Sugerencias rápidas */
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ai-sug-btn {
  background: white;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ai-sug-btn:hover { background: var(--teal); color: white; }

/* Ventana de chat */
.ai-chat-window {
  background: #F8FAFC;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  scroll-behavior: smooth;
}

/* Mensaje genérico */
.ai-msg { display: flex; align-items: flex-start; gap: 8px; }
.ai-msg-user { flex-direction: row-reverse; }
.ai-welcome-msg { display: flex; align-items: flex-start; gap: 8px; }

/* Avatar del bot */
.ai-avatar-wrap { flex-shrink: 0; }
.ai-avatar-emoji {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

/* Burbujas */
.ai-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}
.ai-bubble-user {
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 3px;
}
.ai-bubble-bot {
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ai-bubble-bot strong { color: var(--blue); }
.ai-bubble-bot ul { margin: 6px 0 4px 16px; padding: 0; }
.ai-bubble-bot li { margin-bottom: 3px; }

/* Indicador "pensando" (3 puntos animados) */
.ai-thinking {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.ai-thinking span {
  display: block;
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: aiDot 1.2s infinite;
}
.ai-thinking span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Input área */
.ai-input-wrap { display: flex; flex-direction: column; gap: 6px; }
.ai-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 8px 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.ai-input-bar:focus-within { border-color: var(--teal); }
.ai-textarea {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-800);
  resize: none;
  min-height: 24px;
  line-height: 1.5;
  padding: 2px 0;
}
.ai-send-btn {
  background: var(--teal);
  border: none;
  border-radius: 8px;
  color: white;
  width: 36px; height: 36px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.ai-send-btn:hover { background: var(--blue); }
.ai-send-btn:disabled { background: var(--gray-300); cursor: not-allowed; }

.ai-mic-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-500);
  width: 36px; height: 36px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ai-mic-btn:hover { background: var(--gray-200); color: var(--blue); }
.ai-mic-btn.mic-active {
  background: #FEE2E2;
  border-color: var(--red);
  color: var(--red);
  animation: micPulse 1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(153,27,27,.3); }
  50%       { box-shadow: 0 0 0 6px rgba(153,27,27,0); }
}

.ai-input-hint {
  font-size: 11px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-clear-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.15s;
}
.ai-clear-btn:hover { background: #FEE2E2; color: var(--red); }

/* ===== PRODUCT HERO ===== */
.product-hero {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  color: white;
}

.product-hero.purple { background: linear-gradient(135deg, #1A0D35, #2A1D4E); }
.product-hero.teal   { background: linear-gradient(135deg, #052E30, #095E62); }
.product-hero.blue   { background: linear-gradient(135deg, #07192E, #0F2744); }
.product-hero.indigo { background: linear-gradient(135deg, #0D1B3E, #1E3A6E); }
.product-hero.pink   { background: linear-gradient(135deg, #3B0A1F, #6B1235); }
.product-hero.orange { background: linear-gradient(135deg, #431407, #7C2D06); }

.ph-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ph-info { flex: 1; }

.ph-badge {
  font-size: 11px;
  background: rgba(255,255,255,.15);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

.ph-info h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ph-info p {
  font-size: 13px;
  opacity: .85;
  line-height: 1.5;
}

/* ===== PRODUCT TABS ===== */
.product-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  background: white;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.ptab {
  padding: 8px 14px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ptab:hover { background: var(--gray-100); color: var(--gray-700); }

.ptab.active {
  background: linear-gradient(90deg, var(--purple), var(--teal));
  color: white;
}

.tab-content { animation: fadeIn .2s ease; }
.tab-content.hidden { display: none; }
.loading-tab { padding: 40px; text-align: center; color: var(--gray-400); font-size: 13px; }

/* ===== ALCANCE TABLE ===== */
.alcance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.alcance-col {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.alcance-col-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.alcance-col.si .alcance-col-header { background: var(--green); color: white; }
.alcance-col.no .alcance-col-header { background: var(--red); color: white; }

.alcance-items { background: white; }

.alcance-item {
  padding: 10px 16px;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  transition: background var(--transition);
}

.alcance-item:last-child { border-bottom: none; }
.alcance-item:hover { background: var(--gray-50); }
.alcance-item i { margin-top: 2px; flex-shrink: 0; font-size: 11px; }
.si .alcance-item i { color: var(--green); }
.no .alcance-item i { color: var(--red); }

/* ===== FAQ LIST ===== */
.faq-filters, .frases-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(90deg, var(--purple), var(--teal));
  color: white;
  border-color: var(--purple);
}

.faq-list, .faq-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--purple-light); }
.faq-item.hidden { display: none; }

.faq-question {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.faq-question:hover { background: var(--gray-50); }

.faq-q-icon {
  width: 26px; height: 26px;
  background: var(--purple-bg);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 11px;
  flex-shrink: 0;
  font-weight: 800;
}

.faq-q-text { flex: 1; }

.faq-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: none;
}

.faq-chevron {
  color: var(--gray-400);
  transition: transform var(--transition);
  font-size: 11px;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 16px 14px 52px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.65;
  border-top: 1px solid var(--gray-100);
}

.faq-item.open .faq-answer { display: block; }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 14px;
  background: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  margin-left: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px; top: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--purple);
}

.timeline-phase {
  font-size: 10px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}

.timeline-title { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
.timeline-desc { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

/* ===== INFO BOX ===== */
.info-box {
  background: var(--orange-light);
  border: 1px solid #FCD34D;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.info-box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-box p { font-size: 13px; color: var(--gray-700); line-height: 1.6; }

/* ===== BRIEFING ===== */
.briefing-section {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.briefing-title {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  display: flex;
  align-items: center;
  gap: 8px;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--gray-200);
}

.briefing-item {
  background: white;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.briefing-item i { color: var(--purple); width: 14px; }

/* ===== OBJECIONES ===== */
.objections-list { display: flex; flex-direction: column; gap: 12px; }

.objection-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.objection-header {
  padding: 14px 16px;
  background: var(--red-light);
  border-bottom: 1px solid #FECACA;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.obj-header-icon { color: var(--red); font-size: 15px; margin-top: 2px; }
.obj-objection { font-size: 14px; font-weight: 700; color: #991B1B; }

.objection-response {
  padding: 14px 16px;
  background: var(--green-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.obj-response-icon { color: var(--green); font-size: 15px; margin-top: 2px; }
.obj-response { font-size: 13px; color: #065F46; line-height: 1.6; }

/* cierre de objeción */
.obj-cierre {
  padding: 10px 16px;
  background: #EFF6FF;
  border-top: 1px solid #BFDBFE;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.obj-cierre i { color: #1D4ED8; font-size: 13px; margin-top: 2px; }
.obj-cierre span { font-size: 12px; color: #1E40AF; line-height: 1.5; }

/* banner cierre universal */
.obj-cierre-general {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 13px;
  color: #92400E;
}
.obj-cierre-general i { color: #D97706; font-size: 15px; flex-shrink: 0; }

/* filtros de bloque */
.obj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.obj-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--gray-300);
  background: white;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.obj-filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.obj-filter-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

/* cabecera de bloque */
.obj-bloque { display: flex; flex-direction: column; gap: 12px; }
.obj-bloque + .obj-bloque { margin-top: 22px; }
.obj-bloque-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  background: #EFF6FF;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.obj-bloque-title i { color: var(--teal); font-size: 13px; }

/* ===== FRASES ===== */
.frases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.frase-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frase-categoria {
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
}

.frase-categoria.agenda { background: var(--purple); }
.frase-categoria.acompanamiento { background: var(--teal); }
.frase-categoria.web { background: var(--indigo); }
.frase-categoria.perfil { background: var(--pink); }
.frase-categoria.limites { background: var(--orange); }
.frase-categoria.ventas { background: var(--green); }

.frase-card.hidden { display: none; }

.frase-texto {
  padding: 14px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.65;
  font-style: italic;
  border-bottom: 1px solid var(--gray-100);
}

.frase-cuando {
  padding: 9px 14px;
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.frase-cuando i { color: var(--purple); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.pricing-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--purple);
  background: linear-gradient(160deg, var(--purple-bg) 0%, var(--teal-light) 100%);
}

.pricing-badge {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  color: white;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
}

.pricing-name { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}

.price-main { font-size: 32px; font-weight: 800; color: var(--purple-dark); line-height: 1; }
.price-label { font-size: 12px; color: var(--gray-500); }
.pricing-monthly { font-size: 13px; color: var(--gray-600); margin-bottom: 16px; }

.pricing-features { display: flex; flex-direction: column; gap: 7px; }

.pf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-700);
}

.pf-item i { color: var(--green); font-size: 11px; }

/* ===== CONDICIONES GENERALES ===== */
.condiciones-generales {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.cg-title {
  background: var(--gray-800);
  color: white;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cg-list { padding: 4px 0; }

.cg-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.cg-item:last-child { border-bottom: none; }
.cg-item:hover { background: var(--gray-50); }

.cg-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-300);
  min-width: 28px;
}

.cg-text { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ===== NIVEL CARDS (Acompañamiento) ===== */
.nivel-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.nivel-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.nivel-header.n1 { background: linear-gradient(90deg, var(--teal-dark), var(--teal)); }
.nivel-header.n2 { background: linear-gradient(90deg, var(--purple-dark), var(--purple)); }

.nivel-header h3 { font-size: 15px; font-weight: 700; }
.nivel-header p { font-size: 12px; opacity: .8; margin-top: 2px; }

/* ===== MODALIDADES ===== */
.modalidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.modalidad-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 16px;
  box-shadow: var(--shadow);
}

.mod-num {
  width: 32px; height: 32px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.mod-title { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.mod-como { font-size: 12px; color: var(--gray-600); line-height: 1.5; margin-bottom: 8px; }
.mod-cuando { font-size: 11px; color: var(--gray-500); font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .overlay.active { display: block; }
  .hamburger { display: block; }
  .topbar { left: 0; }
  .main-content { margin-left: 0; }
  .page { padding: 16px 14px; }
  .hero-title { font-size: 26px; }
  .hero-octopus { opacity: .12; }
  .hero-octopus img { width: 130px; }
  .alcance-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .frases-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .product-tabs { gap: 3px; }
  .ptab { padding: 7px 10px; font-size: 11px; }
}

@media (max-width: 480px) {
  .hero-card { padding: 20px 16px; }
  .hero-title { font-size: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; justify-content: center; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ===== SERVICIOS TÉCNICOS ===== */
.product-hero.navy,
.product-hero[style*="1e3a5f"] { background: linear-gradient(135deg, #07192E, #0F2744); }

/* Tipos de servicio */
.tecnico-tipos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.tecnico-tipo-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; border: 1.5px solid var(--gray-200); background: white; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.tecnico-tipo-card.teal { border-left: 4px solid var(--teal); }
.tecnico-tipo-card.navy { border-left: 4px solid #0F2744; }
.tt-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: white; flex-shrink: 0; background: var(--teal); }
.tecnico-tipo-card.navy .tt-icon { background: #0F2744; }
.tt-info strong { font-size: 14px; color: var(--gray-800); display: block; margin-bottom: 6px; }
.tt-info p { margin: 0; font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* Bolsas */
.bolsas-container { display: flex; flex-direction: column; gap: 24px; }
.bolsas-validez-banner { display: flex; gap: 14px; align-items: flex-start; background: #EFF6FF; border: 1.5px solid #BFDBFE; border-radius: 12px; padding: 16px 20px; }
.bolsas-validez-banner i { font-size: 22px; color: #2563EB; flex-shrink: 0; margin-top: 2px; }
.bolsas-validez-banner strong { display: block; font-size: 15px; color: var(--gray-800); margin-bottom: 4px; }
.bolsas-validez-banner span { font-size: 13px; color: var(--gray-600); }
.presupuesto-aparte-block { background: #FFFBEB; border: 1.5px solid #FDE68A; border-radius: 12px; padding: 18px 20px; }
.presupuesto-aparte-block h4 { margin: 0 0 14px; font-size: 14px; color: #92400E; display: flex; align-items: center; gap: 8px; }
.presupuesto-aparte-block h4 i { color: #D97706; }
.presupuesto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.presupuesto-item { font-size: 13px; color: var(--gray-700); display: flex; align-items: center; gap: 6px; }
.presupuesto-item i { color: #D97706; font-size: 11px; }
.terceros-block { background: #F8FAFC; border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 18px 20px; }
.terceros-block h4 { margin: 0 0 12px; font-size: 14px; color: var(--gray-700); display: flex; align-items: center; gap: 8px; }
.terceros-block h4 i { color: var(--gray-500); }
.terceros-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tercero-badge { background: white; border: 1px solid var(--gray-200); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--gray-600); }
.terceros-nota { margin: 0; font-size: 12px; color: var(--gray-500); font-style: italic; line-height: 1.5; }

/* Presencial */
.presencial-container { display: flex; flex-direction: column; gap: 20px; }
.presencial-hero { display: flex; gap: 14px; align-items: flex-start; background: #F0FDF4; border: 1.5px solid #BBF7D0; border-radius: 12px; padding: 16px 20px; }
.presencial-hero i { font-size: 22px; color: var(--teal-dark); flex-shrink: 0; margin-top: 2px; }
.presencial-hero strong { display: block; font-size: 15px; color: var(--gray-800); margin-bottom: 4px; }
.presencial-hero span { font-size: 13px; color: var(--gray-600); }
.presencial-tabla { background: white; border: 1.5px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.pt-row { display: grid; grid-template-columns: 1fr 1.5fr; padding: 13px 20px; border-bottom: 1px solid var(--gray-100); font-size: 14px; gap: 16px; align-items: center; }
.pt-row:last-child { border-bottom: none; }
.pt-row.header { background: var(--gray-50); font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--gray-500); letter-spacing: .04em; }
.pt-row i { margin-right: 6px; color: var(--gray-400); }
.presencial-notas { display: flex; flex-direction: column; gap: 10px; }
.pn-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gray-600); }
.pn-item i { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* Flujo de trabajo */
.flujo-container { display: flex; flex-direction: column; gap: 24px; }
.flujo-steps { display: flex; flex-direction: column; gap: 0; background: white; border: 1.5px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.flujo-step { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.flujo-step:last-child { border-bottom: none; }
.flujo-step:hover { background: var(--gray-50); }
.fs-num { width: 32px; height: 32px; border-radius: 50%; background: #0F2744; color: white; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fs-info { display: flex; flex-direction: column; gap: 3px; }
.fs-info strong { font-size: 14px; color: var(--gray-800); }
.fs-info span { font-size: 13px; color: var(--gray-600); }
.pago-block { background: white; border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 18px 20px; }
.pago-block h4 { margin: 0 0 12px; font-size: 14px; color: var(--gray-700); display: flex; align-items: center; gap: 8px; }
.pago-block h4 i { color: #0F2744; }
.pago-block ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.pago-block li { font-size: 14px; color: var(--gray-600); line-height: 1.5; }

@media (max-width: 700px) {
  .tecnico-tipos-grid { grid-template-columns: 1fr; }
  .presupuesto-grid { grid-template-columns: 1fr 1fr; }
  .pt-row { grid-template-columns: 1fr; }
  .pt-row.header { display: none; }
}

/* ===== TARIFAS ===== */
.tarifas-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tarifas-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--gray-300);
  background: white;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  font-family: inherit;
}
.tarifas-filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.tarifas-filter-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

.tarifas-nota {
  font-size: 12px;
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius);
  padding: 9px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tarifas-nota i { color: #D97706; flex-shrink: 0; }

.tarifas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.tarifa-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.tarifa-card:hover { box-shadow: var(--shadow-md); }

.tarifa-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--gray-100);
}
.tarifa-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 7px;
}
.tarifa-nombre {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 5px;
  line-height: 1.3;
}
.tarifa-desc {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

.tarifa-precios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gray-100);
}
.tarifa-precio-bloque {
  padding: 10px 14px;
  border-right: 1px solid var(--gray-100);
}
.tarifa-precio-bloque:last-child { border-right: none; }
.tarifa-precio-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}
.tarifa-precio-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-800);
}

.tarifa-pif {
  padding: 9px 14px;
  background: #F0FDF4;
  border-bottom: 1px solid #D1FAE5;
}
.tarifa-pif-label {
  font-size: 10px;
  font-weight: 700;
  color: #15803D;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tarifa-pif-label i { font-size: 11px; }
.tarifa-pif-row {
  display: flex;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  flex-wrap: wrap;
}

.tarifa-nota {
  padding: 8px 14px;
  font-size: 11px;
  color: #1E40AF;
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.tarifa-nota i { color: #3B82F6; margin-top: 1px; flex-shrink: 0; }

.tarifa-ideal {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: auto;
}
.tarifa-ideal i { color: var(--teal); margin-top: 1px; flex-shrink: 0; }

@media (max-width: 480px) {
  .tarifas-grid { grid-template-columns: 1fr; }
  .tarifa-precios { grid-template-columns: 1fr; }
  .tarifa-precio-bloque { border-right: none; border-bottom: 1px solid var(--gray-100); }
}
