/* ── Preguntas frecuentes ──────────────────────────────────── */

.dd-faq {
  --dd-blue: #1b4f8a;
  --dd-orange: #e8963c;
  --dd-text: #4b4b4b;
  --dd-rule: #d9dde3;

  box-sizing: border-box;
  width: 100%;
  padding: 56px 24px;
  background: #ffffff;
  font-family: "Poppins", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.dd-faq *,
.dd-faq *::before,
.dd-faq *::after { box-sizing: border-box; }

.dd-faq__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.dd-faq__title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dd-blue);
}

.dd-faq__mark {
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 32px;
  border-radius: 2px;
  background: var(--dd-orange);
}

.dd-faq__list {
  border-top: 1px solid var(--dd-rule);
}

.dd-faq__item {
  border-bottom: 1px solid var(--dd-rule);
}

.dd-faq__q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--dd-blue);
  transition: color 0.15s ease;
}

.dd-faq__q::-webkit-details-marker { display: none; }

.dd-faq__q:hover { color: var(--dd-orange); }

.dd-faq__q:focus-visible {
  outline: 2px solid var(--dd-orange);
  outline-offset: 3px;
}

.dd-faq__q-text { flex: 1; }

/* Signo + / − dibujado con CSS */
.dd-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.dd-faq__icon::before,
.dd-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--dd-orange);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dd-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.dd-faq__item[open] .dd-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* Apertura suave: altura animada donde el navegador lo soporta… */
@supports selector(details::details-content) {
  .dd-faq__item {
    interpolate-size: allow-keywords;
  }
  .dd-faq__item::details-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.35s ease, content-visibility 0.35s allow-discrete, opacity 0.3s ease;
  }
  .dd-faq__item[open]::details-content {
    height: auto;
    opacity: 1;
  }
}

/* …y un desvanecido suave como base en todos los navegadores */
.dd-faq__item[open] .dd-faq__a {
  animation: dd-faq-in 0.35s ease both;
}

@keyframes dd-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dd-faq__item[open] .dd-faq__a { animation: none; }
  .dd-faq__item::details-content,
  .dd-faq__item[open]::details-content { transition: none; }
}

.dd-faq__a {
  margin: 0;
  padding: 0 36px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dd-text);
  text-wrap: pretty;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 700px) {
  .dd-faq { padding: 40px 20px; }
  .dd-faq__title { font-size: 24px; }
  .dd-faq__q { font-size: 16px; }
  .dd-faq__a { padding-right: 0; font-size: 15px; }
}
