/* Header logo */
.page-template-page-preguntas-php .custom-header {
  background-color: white;
  position: absolute;
}
.page-template-page-preguntas-php .nav-menu li a {
  color: #033840;
}
.page-template-page-preguntas-php .nav-menu li.current-menu-item a {
  background-color: #033840 !important;
  color: white !important;
}
.page-template-page-preguntas-php .nav-menu li a:hover {
  background-color: #0e00da !important;
  color: white !important;
}
.page-template-page-preguntas-php .login-icon a,
.page-template-page-preguntas-php .cart-icon a,
.page-template-page-preguntas-php .nav-menu li a[href*="/contacto"]::before {
  color: #033840;
}
.page-template-page-preguntas-php .login-icon a:hover,
.page-template-page-preguntas-php .cart-icon a:hover,
.page-template-page-preguntas-php .nav-menu li a[href*="/contacto"]:hover {
  background-color: #0e00da !important;
  color: white;
}

/* Hero */
.page-template-page-preguntas-php .faq-hero {
  background-image: url('../images/faq-hero3.webp'); /* 👈 cámbiala a tu imagen */
  background-size: cover;
  background-position: center;
  min-height: 75vh; /* ocupa toda la pantalla */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: white;
  position: relative;
}
.page-template-page-preguntas-php .faq-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 1, 62, 0.7); /* o blanco: rgba(255,255,255,0.3) */
  opacity: 0.85; /* ajusta si necesitas más transparencia */
  z-index: 1;
}
.page-template-page-preguntas-php .faq-hero .hero-content {
  margin: 0;
  text-align: center;
  z-index: 2;
}

.page-template-page-preguntas-php .faq-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
.page-template-page-preguntas-php .faq-hero p {
  font-size: 27px;
  margin-bottom: 5rem;
  margin-top: 0.5rem;
  text-align: center;
}
@media (max-width: 768px) {
  .page-template-page-preguntas-php .faq-hero { min-height: 50vh; }
  .page-template-page-preguntas-php .faq-hero p { font-size: 18px; margin-bottom: 2.5rem; }
}

/* FAQ list */
.faq-wrap {
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
}
.faq-item {
  background: #0d3f44;
  border-radius: 14px;
  margin: 1rem 0;
}
.faq-h { list-style: none; margin: 0; padding: 0; }
.faq-btn {
  width: 100%;
  text-align: left;
  color: #0d3f44;
  border: 0;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  background-color: white;
  /* sombra más notoria */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  border-radius: 8px; /* opcional */
}
.faq-btn:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
  border-radius: 10px;
}
.faq-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #11c1bb;
  display: grid;
  place-items: center;
}
.faq-icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(0deg);
  transition: transform .25s ease;
}
.faq-item.is-open .faq-icon svg { transform: rotate(180deg); }
.faq-panel {
  background: #f4fbfb;
  color: #0f1f22;
  padding: 1.1rem 1.25rem 1.4rem;
  font-size: 15px;
  line-height: 1.6;
  display: none;
}
.faq-item.is-open .faq-panel { display: block; }
.faq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #062e33;
  background: #11c1bb;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  font-size: 13px;
  margin-right: .6rem;
}
/* Cambiar colores cuando está abierto */
.faq-item.is-open .faq-btn {
  background-color: #0d3f44;   /* fondo del botón activo */
  color: #ffffff;             /* texto blanco */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.faq-item.is-open .faq-icon {
  background: #ffffff;        /* círculo del icono */
}

.faq-item.is-open .faq-icon svg {
  fill: #0d3f44;              /* cambia color del ícono */
}

.faq-item.is-open .faq-panel {
  background: #e9f7f7;        /* fondo del panel abierto */
  color: #062e33;
}
.faq-btn:hover {
  background-color: #0d3f44;  /* fondo turquesa */
  color: #ffffff;            /* texto blanco */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.faq-btn:hover .faq-icon {
  background: #ffffff;
}

.faq-btn:hover .faq-icon svg {
  fill: #0d3f44;
}