﻿/* ==========================================================================
   Hotel Arturo Michelena — faq.css
   Estilos premium para la página de Preguntas Frecuentes (FAQ).
   ========================================================================== */

/* Hero Section */
.faq-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(13, 50, 38, 0.15) 0%, transparent 80%);
  pointer-events: none;
}
.faq-hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hotel-accent-gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.faq-hero__title {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.faq-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 var(--margin-mobile);
}
.faq-search-box {
  display: flex;
  background: #ffffff;
  border-radius: 50px;
  padding: 0.35rem 0.5rem 0.35rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(197, 168, 128, 0.2);
  align-items: center;
}
.faq-search-box span.material-symbols-outlined {
  color: var(--text-muted);
  font-size: 1.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.faq-search-input {
  border: none;
  background: transparent;
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  padding: 0.5rem 0;
}
.faq-search-input::placeholder {
  color: var(--text-muted);
}

/* Category Tabs */
.faq-tabs-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px; /* Ajuste basado en el alto del navbar */
  z-index: 100;
}
.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.faq-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.faq-tab-btn:hover {
  border-color: var(--hotel-accent-gold);
  color: var(--hotel-primary);
}
.faq-tab-btn.active {
  background: var(--hotel-primary);
  border-color: var(--hotel-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 50, 38, 0.15);
}

/* FAQ Layout Container */
.faq-content-section {
  padding: 4rem 0;
}
.faq-layout {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Accordion Item */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover {
  border-color: rgba(197, 168, 128, 0.5);
  box-shadow: var(--shadow-md);
}
.faq-item.active {
  border-color: var(--hotel-accent-gold);
  box-shadow: var(--shadow-md);
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  text-align: left;
}
.faq-question {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  padding-right: 1.5rem;
  transition: var(--transition);
}
.faq-item.active .faq-question {
  color: var(--hotel-primary);
}
.faq-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hotel-accent-gold);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.active .faq-icon-wrapper {
  background: var(--hotel-primary);
  color: #ffffff;
  transform: rotate(180deg);
}
.faq-icon-wrapper span.material-symbols-outlined {
  font-size: 1.1rem;
  font-weight: 600;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid transparent;
}
.faq-item.active .faq-answer {
  border-top-color: rgba(13, 50, 38, 0.05);
}

/* Highlight matching search text */
.faq-highlight {
  background-color: rgba(197, 168, 128, 0.25);
  font-weight: 600;
  border-radius: 2px;
}

/* FAQ No Results */
.faq-no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-secondary);
  display: none;
}
.faq-no-results span {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

/* FAQ Footer CTA */
.faq-cta-section {
  background: linear-gradient(135deg, rgba(13, 50, 38, 0.03) 0%, rgba(197, 168, 128, 0.03) 100%);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0;
  text-align: center;
}
.faq-cta__title {
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.faq-cta__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
  transition: var(--transition);
}
.faq-cta__btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 186, 90, 0.3);
  color: #ffffff;
}

/* Responsividad Móvil */
@media (max-width: 768px) {
  .faq-hero {
    padding: 4rem 0 3rem;
  }
  .faq-hero__title {
    font-size: 2.25rem;
  }
  .faq-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  .faq-question {
    font-size: 1.1rem;
  }
  .faq-content-section {
    padding: 3rem 0;
  }
}
