.cac-faq-widget,
.cac-faq-widget * {
  box-sizing: border-box;
}

.cac-faq-widget {
  --cream: #fbf0d8;
  --wine: #770101;
  --red: #c1111e;
  --blue: #659aba;
  --deep: #023048;
  --ink: #172a40;
  --paper: #fffdf8;
  --rose: #f7d9d3;
  font-family: Poppins, Arial, sans-serif;
}

.cac-faq-widget .cac-faq-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 58px;
  height: 58px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: var(--wine);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 99990;

  box-shadow: 0 14px 35px #77010147;
  transition: 0.25s;

  /* Blindaje contra estilos de WordPress/Elementor */
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  appearance: none;
  -webkit-appearance: none;
}

.cac-faq-widget .cac-faq-launch:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--red);
}

.cac-faq-widget .cac-question {
  width: 31px;
  height: 31px;

  margin: 0;
  padding: 0;

  border: 2px solid #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;

  text-align: center;
  vertical-align: middle;
}

.cac-faq-widget .cac-mini-label {
  position: absolute;
  right: 0;
  bottom: 67px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--wine);
  box-shadow: 0 8px 25px #321e251f;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: 0.22s;
}

.cac-faq-widget .cac-faq-launch:hover .cac-mini-label {
  opacity: 1;
  transform: none;
}

.cac-faq-widget .cac-faq-launch:before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #c1111e38;
  border-radius: 50%;
  animation: cacPulse 2.8s ease-out infinite;
}

@keyframes cacPulse {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }

  20% {
    opacity: 0.7;
  }

  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.cac-faq-widget .cac-faq-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 125px));
  overflow: hidden;
  z-index: 99991;
  background: var(--paper);
  border: 1px solid #77010114;
  border-radius: 24px;
  box-shadow: 0 28px 75px #231b251f;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.97);
  transform-origin: bottom right;
  transition: 0.25s;
}

.cac-faq-widget .cac-faq-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cac-faq-widget .cac-faq-head {
  position: relative;
  padding: 24px 52px 21px 23px;
  background:
    radial-gradient(circle at 90% 0%, #659aba2e, transparent 34%),
    linear-gradient(135deg, #fffdf8, #fbf0d8);
  border-bottom: 1px solid #77010112;
}

.cac-faq-widget .cac-faq-eyebrow {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.cac-faq-widget .cac-faq-title {
  margin: 0;
  color: var(--wine);
  font:
    600 28px/1 "Playfair Display",
    Georgia,
    serif;
}

.cac-faq-widget .cac-faq-intro {
  margin: 8px 0 0;
  color: #526276;
  font-size: 11px;
  line-height: 1.55;
}

.cac-faq-widget .cac-faq-close {
  position: absolute;
  top: 15px;
  right: 15px;

  width: 34px;
  height: 34px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #ffffffc7;
  color: var(--deep);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;

  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  vertical-align: middle;

  appearance: none;
  -webkit-appearance: none;
}
.cac-faq-widget .cac-faq-list {
  padding: 9px 14px 4px;
  max-height: 355px;
  overflow: auto;
}

.cac-faq-widget .cac-faq-item {
  border-bottom: 1px solid #77010117;
}

.cac-faq-widget .cac-faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 15px 30px 15px 9px;
  position: relative;
  text-align: left;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.cac-faq-widget .cac-faq-question:after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 13px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--red);
  font-size: 17px;
}

.cac-faq-widget .cac-faq-item.is-open .cac-faq-question {
  color: var(--wine);
}

.cac-faq-widget .cac-faq-item.is-open .cac-faq-question:after {
  content: "−";
  background: var(--red);
  color: #fff;
}

.cac-faq-widget .cac-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.cac-faq-widget .cac-faq-answer-inner {
  overflow: hidden;
  color: #536276;
  font-size: 11px;
  line-height: 1.65;
}

.cac-faq-widget .cac-faq-item.is-open .cac-faq-answer {
  grid-template-rows: 1fr;
}

.cac-faq-widget .cac-faq-item.is-open .cac-faq-answer-inner {
  padding: 0 9px 16px;
}

.cac-faq-widget .cac-faq-footer {
  padding: 15px 18px 17px;
  background: #f8ded7;
  border-top: 1px solid #7701010f;
  text-align: center;
}

.cac-faq-widget .cac-faq-footer-note {
  margin: 0 0 10px;
  color: #667486;
  font-size: 9px;
  line-height: 1.45;
}

.cac-faq-widget .cac-faq-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 18px #7701012e;
  transition: 0.22s;
}

.cac-faq-widget .cac-faq-more:hover {
  background: var(--red);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cac-faq-widget .cac-faq-launch {
    right: 16px;
    bottom: 16px;
    width: 55px;
    height: 55px;
  }

  .cac-faq-widget .cac-faq-panel {
    right: 10px;
    bottom: 82px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
    border-radius: 22px;
  }

  .cac-faq-widget .cac-faq-list {
    max-height: calc(100vh - 345px);
  }

  .cac-faq-widget .cac-faq-title {
    font-size: 26px;
  }

  .cac-faq-widget .cac-mini-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cac-faq-widget .cac-faq-launch:before,
  .cac-faq-widget .cac-faq-panel,
  .cac-faq-widget .cac-faq-answer {
    animation: none !important;
    transition: none !important;
  }
}
