/*
  Hoja de estilos para la landing page de Sybil
  Inspirada en el estilo y estructura de la página theequityfund.org. Se
  utilizan colores consistentes con la paleta proporcionada y se aplican
  variaciones de los mismos para crear secciones contrastantes y agradables.
*/

:root {
  /* Paleta de colores (adaptada desde la especificación del usuario) */
  --black: #000000;
  --black-600: #333333;
  --oxford-blue: #071128;
  --oxford-blue-600: #153276;
  --royal-blue: #5b6ee1;
  --cornflower-blue: #639bff;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #1ebe5d;
  --honeydew: #efecff;
  --white: #ffffff;
  /* Colores de sección para replicar el contraste del diseño de referencia */
  --section-hero-bg: var(--honeydew);
  --section-metodologia-bg: var(--honeydew);
  --section-niveles-bg: var(--honeydew);
  --section-fases-bg: var(--honeydew);
  --section-metrics-bg: var(--oxford-blue-600);
  --section-industrias-bg: var(--honeydew);
  --section-cta-bg: var(--honeydew);
  /* Espaciados */
  --padding-container: 2rem;
  --max-width: 1200px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--oxford-blue);
  background-color: var(--section-hero-bg);
  scroll-behavior: smooth;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* Encabezado */
/* Encabezado */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--section-hero-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}


/* Ajusta la imagen del logotipo */
.header .logo img {
  height: 60px;
  margin-left: 20pt;
  margin-left: 20pt;
  width: auto;
}

/* Navegación */
.nav-links {
  display: flex;
  margin-right: 20pt;
  gap: 2rem;
  font-weight: 500;
}

 .nav-links a {
  color: var(--oxford-blue);
  transition: color 0.3s ease;
  padding-bottom: 0.2rem;
 }
 .nav-links a:hover {
  color: var(--royal-blue);
  border-bottom: 2px solid var(--royal-blue);
 }


.hamburger {
  margin-right: 20pt;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--cornflower-blue);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
/* Hero nuevo */
.hero {
  background-color: var(--section-hero-bg);
  padding-top: 6rem; 
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1,
.hero-heading {
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--oxford-blue);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-heading span {
  color: var(--royal-blue);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--oxford-blue);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--royal-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--cornflower-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--nyanza);
  color: var(--oxford-blue);
}

.btn-secondary:hover {
  background-color: var(--honeydew);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Secciones generales */
section {
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--oxford-blue);
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  color: var(--oxford-blue);
}

/* Metodología */
.metodologia {
  background-color: var(--section-metodologia-bg);
}

.method-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.method-item {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.method-item h3 {
  color: var(--oxford-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.method-item p {
  font-size: 0.95rem;
  color: var(--oxford-blue);
}

/* Niveles de automatización */
.niveles {
  background-color: var(--section-niveles-bg);
}

.niveles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.nivel-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 1.5rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.nivel-card:hover {
  transform: translateY(-4px);
}

.nivel-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--oxford-blue);
  font-weight: 600;
}

.nivel-card p {
  font-size: 0.95rem;
  color: var(--oxford-blue);
}

/* Fases */
.fases {
  background-color: var(--section-fases-bg);
}

.fases-timeline {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  position: relative;
}

.fase {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border-top: 4px solid var(--royal-blue);
  transition: transform 0.3s ease;
}

.fase:hover {
  transform: translateY(-3px);
}

.fase-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem auto;
  border-radius: 50%;
  background-color: var(--royal-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.fase h3 {
  color: var(--oxford-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.fase p {
  font-size: 0.95rem;
  color: var(--oxford-blue);
}

/* Industrias */
.industrias {
  background-color: var(--section-industrias-bg);
}

.industrias-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
}

.industria-item {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem 1rem 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  width: 100%;
  transition: transform 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.industria-item:hover {
  transform: translateY(-4px);
}


.industria-item h3 {
  color: var(--oxford-blue);
  font-size: 1rem;
  font-weight: 600;
}

/* Pequeña barra decorativa en la parte superior de cada tarjeta de industria */
.industria-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--royal-blue);
  border-radius: 2px;
}

/* CTA */
.cta {
  background-color: var(--section-cta-bg);
  text-align: center;
  padding: 4rem 2rem;
  color: var(--oxford-blue);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--oxford-blue);
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--oxford-blue);
}

.contact-actions,
.footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-actions {
  justify-content: center;
}

.contact-actions .btn {
  min-width: 126px;
}

.footer-contact-actions {
  margin-bottom: 1rem;
}

.footer-contact-actions .btn {
  padding: 0.6rem 1.1rem;
}

.footer .footer-contact-actions .btn-primary {
  color: var(--white);
}

.footer .footer-contact-actions .btn-whatsapp,
.footer .footer-contact-actions .btn-whatsapp:hover {
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--section-metrics-bg);
  color: var(--white);
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer p,
.footer ul,
.footer a {
  font-size: 0.9rem;
}

.footer a {
  color: var(--white);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--royal-blue);
}

.footer-bottom {
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  color: var(--white);
  font-size: 0.8rem;
}

/* Menú móvil */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--section-hero-bg);
    flex-direction: column;
    width: 200px;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0 0 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .nav-links a {
    padding: 0.5rem 0;
    border-bottom: none;
  }
  .nav-links a:hover {
    border-bottom: none;
  }
  
  /* Hide hero image on smaller screens */
  .hero-image {
    display: none;
  }
  .hero-grid {
      display: block;
      align-items: center;
  }
}

/* Animaciones para el menú hamburguesa */

/* Animaciones para el menú hamburguesa */
.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Métricas */
.metrics {
  background-color: var(--section-metrics-bg);
  color: var(--white);
}

/* Aseguramos que todo el texto dentro de métricas sea blanco para un mejor contraste */
.metrics p {
  color: var(--white);
}

.metrics-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  margin-top: 2rem;
}

.metric {
  text-align: center;
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--nyanza);
}

.metric-label {
  font-size: 1rem;
  color: var(--white);
}

/* Ajustes de color dentro de métricas */
.metrics h2 {
  color: var(--nyanza);
}

.metrics .section-intro {
  color: var(--white) !important;
}

/* Estilo específico para el texto introductorio de métricas */
.metrics-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  font-size: 1rem;
}

/* AutomationLevels Component Styles */
.automation-levels {
  background-color: var(--honeydew);
  padding: 4rem 0;
}

.levels-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  min-height: 600px;
}

/* LEFT SIDE - STACK */
.levels-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stack-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--oxford-blue);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.desktop-instruction {
  color: #6b7280;
  font-size: 1rem;
  font-style: italic;
  display: block;
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: visible;
  opacity: 0.7;
  flex-wrap: wrap;
}

.stack-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: calc(100% - 16px);
  background: var(--level-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.stack-item:hover,
.stack-item.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--level-color);
  opacity: 1;
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stack-item.active::before {
  opacity: 1;
}

.stack-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--level-color);
  min-width: 40px;
}

.stack-content {
  flex: 1;
}

.stack-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--oxford-blue);
  margin-bottom: 0.25rem;
}

.stack-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.stack-indicator {
  width: 12px;
  height: 12px;
  position: relative;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--level-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--level-color);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--level-color);
  opacity: 0;
  transition: all 0.3s ease;
  position: absolute;
}

.stack-item.active .indicator-dot {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* RIGHT SIDE - EXPLANATION */
.level-explanation {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
}

.explanation-content {
  width: 100%;
  max-width: 500px;
  position: absolute;
  top: 2rem;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.explanation-header {
  margin-bottom: 2rem;
}

.explanation-badge {
  display: inline-block;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.explanation-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--oxford-blue);
  margin-bottom: 0.75rem;
}

.explanation-description {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.6;
  font-style: italic;
}

.explanation-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--oxford-blue);
  margin-bottom: 0.75rem;
}

.section-content {
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
}

.examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.examples-list li {
  padding: 0.5rem 0;
  color: #374151;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.examples-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--example-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.benefit-highlight {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefit-icon {
  font-size: 1.5rem;
}

.benefit-text {
  font-weight: 600;
  color: var(--oxford-blue);
  font-size: 1rem;
}

/* MOBILE EXPLANATION STYLES */
.mobile-explanation {
  width: 100%;
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border-left: 4px solid var(--level-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

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

.mobile-explanation-badge {
  display: inline-block;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-explanation-description {
  font-size: 1rem;
  color: #374151;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.mobile-section {
  margin-bottom: 1.25rem;
}

.mobile-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--oxford-blue);
  margin-bottom: 0.5rem;
}

.mobile-section-content {
  color: #374151;
  line-height: 1.6;
  font-size: 0.9rem;
}

.mobile-examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-examples-list li {
  padding: 0.4rem 0;
  color: #374151;
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mobile-examples-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--example-color);
  font-weight: bold;
  font-size: 1rem;
}

.mobile-benefit-highlight {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-benefit-icon {
  font-size: 1.2rem;
}

.mobile-benefit-text {
  font-weight: 600;
  color: var(--oxford-blue);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .levels-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stack-header h2 {
    font-size: 2rem;
  }

  .desktop-instruction {
    display: none;
  }

  .level-explanation {
    display: none;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .stack-item {
    margin-bottom: 0;
  }

  .explanation-content {
    max-width: 100%;
    position: static;
  }

  .explanation-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .stack-item {
    padding: 1rem;
  }

  .stack-number {
    font-size: 1.2rem;
  }

  .stack-title {
    font-size: 1.1rem;
  }
}

/* FAQ SECTION STYLES */
.faq-section {
  padding: 4rem 0;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--honeydew);
  border-radius: 12px;
  overflow: hidden;
  min-height: 600px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 600px;
}

/* LEFT SIDEBAR */
.faq-sidebar {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}

.faq-sidebar h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--oxford-blue);
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.faq-navigation {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-item {
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Quicksand', sans-serif;
  position: relative;
  opacity: 0.7;
  width: 100%;
  margin-bottom: 0.5rem;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: calc(100% - 16px);
  background: var(--category-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--category-color);
  opacity: 1;
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.nav-item.active::before {
  opacity: 1;
}

.nav-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-item-label {
  font-weight: 500;
  color: inherit;
}

.nav-item-short {
  display: none;
}

.nav-item.active .nav-item-label {
  font-weight: 600;
  color: var(--oxford-blue);
}

.nav-item-indicator {
  width: 12px;
  height: 12px;
  position: relative;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--category-color);
  opacity: 0;
  transition: all 0.3s ease;
  position: absolute;
}

.nav-item.active .indicator-dot {
  opacity: 1;
  animation: pulse 2s infinite;
}

/* RIGHT CONTENT - CHAT STYLE */
.faq-content {
  display: flex;
  flex-direction: column;
}

.chat-container {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-category {
  display: none;
  flex-direction: column;
}

.chat-category.active {
  display: flex;
}

.chat-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.3s ease-out;
}

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

.question-bubble {
  background: var(--royal-blue);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  align-self: flex-start;
  max-width: 80%;
  font-weight: 500;
  line-height: 1.4;
  font-size: 1rem;
}

.answer-text {
  background: var(--white);
  color: var(--oxford-blue);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  align-self: flex-start;
  max-width: 85%;
  line-height: 1.7;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* FAQ RESPONSIVE */
@media (max-width: 968px) {
  .faq-section {
    padding: 2rem 0;
    overflow-x: hidden;
  }

  .faq-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: none;
    width: 100%;
  }

  .faq-container {
    margin: 0;
    min-height: auto;
    width: 100%;
    max-width: 100%;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .faq-sidebar {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0 1rem 0;
    width: 100%;
    max-width: 100%;
  }

  .faq-sidebar h2 {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    line-height: 1.2;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .faq-navigation {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1rem;
    gap: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .faq-navigation::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: auto;
    width: auto;
    margin-bottom: 0;
    transform: none;
    box-shadow: none;
  }

  .nav-item::before {
    display: none;
  }

  .nav-item:hover,
  .nav-item.active {
    transform: none;
    box-shadow: none;
    background: var(--category-color);
    border-color: var(--category-color);
  }

  .nav-item.active .nav-item-label {
    color: var(--white);
    font-weight: 600;
  }

  .nav-item-indicator {
    display: none;
  }

  .nav-item-full {
    display: none;
  }

  .nav-item-short {
    display: inline;
  }

  .faq-content {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .chat-container {
    padding: 1.5rem;
    overflow-x: hidden;
  }

  .question-bubble {
    max-width: 95%;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
  }

  .answer-text {
    font-size: 0.95rem;
    max-width: 95%;
    padding: 0.875rem 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 3rem;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .faq-section {
    padding: 1.5rem 0;
    overflow-x: hidden;
  }

  .faq-section .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: none;
    width: 100%;
  }
  
  .faq-container {
    border-radius: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .faq-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .faq-navigation {
    padding: 0 0.5rem;
  }

  .nav-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  .chat-container {
    padding: 1rem;
  }

  .question-bubble {
    padding: 0.75rem 1rem;
    max-width: 98%;
    font-size: 0.9rem;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .answer-text {
    padding: 0.75rem 1rem;
    max-width: 98%;
    font-size: 0.9rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
