/* ==========================================================================
   faq.css — Nosotros, Misión, Visión, Valores & FAQ | Grupo del Sur
   ========================================================================== */

/* ── Sección Misión & Visión ────────────────────────────────────────────── */
.about-section {
  padding: 5.5rem 0 3.5rem;
  background: var(--bg-body);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 4rem;
}

.mv-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mv-mision {
  border-top: 5px solid var(--primary);
  background: linear-gradient(145deg, #ffffff 0%, var(--primary-light) 100%);
}

.mv-vision {
  border-top: 5px solid var(--accent);
  background: linear-gradient(145deg, #ffffff 0%, var(--accent-light) 100%);
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.mv-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 179, 186, 0.25);
  margin-bottom: 1.25rem;
}

.mv-badge.badge-accent {
  background: var(--accent-light);
  color: var(--secondary);
  border-color: rgba(201, 214, 70, 0.4);
}

.mv-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.mv-title {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.mv-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.mv-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.mv-highlights li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-light);
}

.mv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.mv-dot.dot-accent {
  background: var(--accent-dark);
}

/* ── Sección Nuestros Valores ───────────────────────────────────────────── */
.values-header {
  margin-bottom: 2.5rem;
}

.values-subtitle {
  font-size: 1.85rem;
  color: var(--secondary);
  margin-top: 0.4rem;
}

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

.valor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.valor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.35s ease;
}

.valor-card:hover::before {
  width: 100%;
}

.valor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.valor-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.valor-card:hover .valor-icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--accent);
}

.valor-title {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.valor-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Separador entre Secciones ─────────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 1rem 0;
}

.faq-main-section {
  padding: 4.5rem 0 5.5rem;
  background: var(--bg-body);
}

/* ── Contenedor central ─────────────────────────────────────────────────── */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

/* ── Ítem accordion ─────────────────────────────────────────────────────── */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,179,186,0.1);
}

/* ── Botón pregunta ─────────────────────────────────────────────────────── */
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary-dark); }

.faq-icon {
  width: 20px; height: 20px;
  transition: transform 0.35s ease;
  color: var(--primary);
  flex-shrink: 0;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ── Respuesta ──────────────────────────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
  transition: max-height 0.35s ease-in-out;
}

/* ── Categorías de FAQ ──────────────────────────────────────────────────── */
.faq-category-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  padding: 0 0.25rem;
  display: block;
}

/* ── Barra de búsqueda FAQ ──────────────────────────────────────────────── */
.faq-search {
  position: relative;
  max-width: 550px;
  margin: 0 auto 2.5rem;
}
.faq-search input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  outline: none;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.faq-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,179,186,0.15);
}
.faq-search svg {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px; height: 18px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mv-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .valores-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 2rem 1.5rem; }
}
