/* ==========================================================================
   PROVAC EXPRESS - ESTILO MODERNO B2B (Estilo GrubMarket)
   ========================================================================== */

:root {
  --bg-main: #FAFAFC;
  --bg-card: #FFFFFF;
  --primary: #059669;        /* Verde fresco/tecnológico */
  --primary-hover: #047857;
  --text-main: #111827;     /* Gris oscuro nítido */
  --text-muted: #6B7280;    /* Gris secundario */
  --border-color: #E5E7EB;  /* Borde delgado y suave */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --radius-card: 16px;
  --radius-input: 10px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- BASE & TIPOGRAFÍA --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  margin-top: 0;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 16px 24px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.btn-glow {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-input);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
  transition: background 0.2s, transform 0.1s;
}

.btn-glow:hover {
  background-color: var(--primary-hover);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%[cite: 3], var(--bg-main) 100%[cite: 3]);
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ECFDF5;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #A7F3D0;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-section h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.gradient-text {
  color: var(--primary);
}

.hero-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-input);
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, transform 0.1s;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-outline:hover {
  background-color: #F3F4F6;
}

/* --- MÉTRICAS --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- SERVICIOS --- */
.services-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
}

.service-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: #ECFDF5;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* --- CATÁLOGO --- */
.catalog-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.badge-mini {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background-color: #ECFDF5;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.catalog-search-bar {
  max-width: 500px;
  margin: 0 auto 24px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
}

.search-input-wrapper input {
  padding-left: 42px !important;
}

.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 16px;
  border-radius: var(--radius-input);
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  color: #1E40AF;
}

.notice-banner p {
  color: #1E40AF;
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-badge {
  display: inline-block;
  background-color: #F3F4F6;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.catalog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.btn-card-quote {
  margin-top: 16px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-card-quote:hover {
  background-color: var(--primary);
  color: #fff;
}

/* --- FOOTER --- */
.main-footer {
  background-color: #111827;
  color: #9CA3AF;
  padding: 60px 24px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col.brand span {
  color: #FFFFFF;
  font-size: 1.1rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-col p {
  color: #9CA3AF;
  margin: 0 0 8px 0;
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #1F2937;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   ESTILOS DE LA CALCULADORA Y MODAL (calculadora.html inyectada)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-card);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-color);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F3F4F6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background-color: #E5E7EB;
}

.modal-title-group {
  margin-bottom: 24px;
}

.modal-title-group h2 {
  font-size: 1.5rem;
  margin: 6px 0;
}

.form-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.step-num {
  background-color: #ECFDF5;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.form-step h4 {
  margin: 0;
  font-size: 1rem;
}

.input-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.input-row.cols-3 > div {
  flex: 1;
}

.input-row.cols-2 > div {
  flex: 1;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  flex: 1;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

input[type="text"], 
input[type="number"], 
input[type="date"], 
select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  background-color: #F9FAFB;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus, select:focus {
  background-color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

input[readonly] {
  background-color: #F3F4F6;
  color: var(--text-muted);
}

.address-group-box {
  background-color: #F9FAFB;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-input);
  margin-bottom: 16px;
}

.group-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 10px;
}

.btn-gps-loc {
  background-color: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-gps-loc:hover {
  background-color: #F3F4F6;
  border-color: #D1D5DB;
}

.load-gauge {
  background-color: #F3F4F6;
  padding: 12px;
  border-radius: var(--radius-input);
  margin: 16px 0;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.gauge-bar {
  background-color: #E5E7EB;
  border-radius: 999px;
  height: 8px;
  width: 100%;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 0%;
  background-color: var(--primary);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.price-summary-card {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  margin: 24px 0 16px 0;
}

.price-label {
  font-size: 0.85rem;
  color: #065F46;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #064E3B;
  margin: 6px 0;
}

.price-sub {
  font-size: 0.85rem;
  color: #047857;
  margin: 0;
}

.btn-submit-wa {
  background-color: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-input);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: background 0.2s, transform 0.1s;
}

.btn-submit-wa:hover {
  background-color: #20BA5A;
}

.btn-submit-wa:disabled {
  background-color: #D1D5DB;
  color: #9CA3AF;
  cursor: not-allowed;
  box-shadow: none;
}

.alert-banner {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-input);
  font-size: 0.85rem;
  margin-top: 10px;
}

.alert-banner.error {
  display: block;
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.gps-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 4px;
  display: block;
}

#mapaFlete {
  border-radius: var(--radius-input);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS PARA DISPOSITIVOS MÓVILES (MOBILE FIRST & FLEX FIXES)
   ========================================================================== */

/* 1. Asegurar que los contenedores no rebasen la pantalla en móviles */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* Reducir padding general en secciones principales */
  .hero-section {
    padding: 40px 16px 30px;
  }

  .services-section, 
  .catalog-section, 
  .main-footer {
    padding: 0 16px;
    margin: 40px auto;
  }

  /* Convertir los menús de navegación en apilados o compactos */
  .nav-container {
    padding: 0 8px;
  }

  .nav-links {
    display: none; /* Oculta los links de texto en pantallas muy chicas para priorizar el botón de cotizar */
  }

  /* Hero: Títulos y textos adaptados a celulares */
  .hero-section h1 {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta-group button, 
  .hero-cta-group a {
    width: 100%;
  }

  /* Convertir filas de formularios de 2 y 3 columnas en 1 sola columna vertical en celulares */
  .input-row, 
  .input-row.cols-2, 
  .input-row.cols-3 {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .input-row > div {
    width: 100% !important;
    margin-bottom: 10px;
  }

  /* Adaptar el Modal de la Calculadora para que cubra la pantalla de forma cómoda en móvil */
  .modal-window {
    width: 95% !important;
    max-height: 92vh !important;
    padding: 20px 16px !important;
    margin: auto;
  }

  /* Ajustar botones y elementos táctiles para mayor comodidad con el dedo */
  input[type="text"], 
  input[type="number"], 
  input[type="date"], 
  select {
    font-size: 16px !important; /* Evita que iOS haga zoom automático incómodo al enfocar inputs */
    padding: 12px;
  }

  .btn-submit-wa, .btn-primary {
    font-size: 0.95rem;
    padding: 14px;
  }

  /* Métricas en columna para pantallas pequeñas */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 2. Corrección general para imágenes y mapas responsivos */
img, svg, video {
  max-width: 100%;
  height: auto;
}

#mapaFlete {
  width: 100% !important;
  max-width: 100%;
}

/* ==========================================================================
   ESTILOS PARA SECCIÓN DE CONFIANZA (CTA) Y PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */

/* --- SECCIÓN DE CONFIANZA & COBERTURA --- */
.trust-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.trust-container {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-card);
  padding: 48px 32px;
  box-shadow: var(--shadow-sm);
}

.trust-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.trust-content h2 {
  font-size: 1.8rem;
  margin: 12px 0 16px;
  color: var(--text-main);
}

.zones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 32px;
}

.zone-pill {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.trust-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  padding: 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-color);
}

.trust-icon {
  font-size: 1.6rem;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
}

/* --- SECCIÓN DE PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-card:hover {
  border-color: #A7F3D0;
  box-shadow: var(--shadow-md);
}

.faq-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.4;
}

.faq-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- AJUSTES RESPONSIVOS MÓVILES PARA FAQ Y CTA --- */
@media (max-width: 768px) {
  .trust-container {
    padding: 28px 16px;
  }

  .trust-content h2 {
    font-size: 1.4rem;
  }

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

/* ==========================================================================
   ESTILOS PARA ACORDEÓN DE PREGUNTAS FRECUENTES (FAQ DROPDOWN)
   ========================================================================== */

.faq-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 24px;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  list-style: none; /* Oculta la flecha por defecto del navegador */
}

/* Ocultar la flecha nativa en navegadores webkit (Chrome, Safari, Edge) */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Rota la flecha cuando el acordeón se despliega */
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 24px 24px;
  border-top: 1px solid transparent;
  animation: fadeInAccordion 0.3s ease-in-out;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

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

/* --- RESPONSIVO MÓVIL --- */
@media (max-width: 768px) {
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 18px 18px 18px;
  }
}