:root {
    --faq-purple: #74006f;
    --faq-magenta: #a5008e;
    --faq-cyan: #00a9b4;
    --faq-ink: #241c37;
    --faq-muted: #6e6878;
    --faq-line: #e8e1ee;
    --faq-soft: #f7f3fa;
    --faq-lilac: #eee5fb;
}

.qualitas-faq-page {
    color: var(--faq-ink);
    font-family: "Lato", sans-serif;
}

.qualitas-faq-page h1,
.qualitas-faq-page h2,
.qualitas-faq-page h3,
.qualitas-faq-page button,
.qualitas-faq-page strong {
    font-family: "Montserrat", sans-serif;
}

.faq-proposal-switcher {
    position: fixed;
    z-index: 990;
    top: 50%;
    right: 18px;
    width: 218px;
    padding: 11px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    background: rgba(31, 18, 43, .93);
    box-shadow: 0 18px 48px rgba(25, 8, 36, .25);
    backdrop-filter: blur(12px);
}

.faq-proposal-switcher > span {
    display: block;
    padding: 5px 9px 9px;
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.faq-proposal-switcher a {
    display: grid;
    min-height: 45px;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .7);
    transition: .2s ease;
}

.faq-proposal-switcher a:hover,
.faq-proposal-switcher a.is-active {
    color: #fff;
    background: linear-gradient(120deg, var(--faq-magenta), #6b176f);
}

.faq-proposal-switcher strong { color: #fff; font-size: 13px; }
.faq-proposal-switcher small { font-size: 11px; }

.faq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--faq-purple);
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.faq-eyebrow::before {
    width: 3px;
    height: 15px;
    border-radius: 3px;
    background: var(--faq-cyan);
    content: "";
}

.faq-hero {
    position: relative;
    min-height: 475px;
    overflow: hidden;
    background: linear-gradient(108deg, #fbfbff 0%, #f0eafb 56%, #e7f9fa 100%);
}

.faq-hero::after {
    position: absolute;
    right: -10%;
    bottom: -45%;
    width: 690px;
    height: 690px;
    border: 100px solid rgba(139, 69, 184, .09);
    border-radius: 50%;
    content: "";
}

.faq-hero__shape {
    position: absolute;
    border: 1px solid rgba(151, 84, 191, .15);
    border-radius: 50%;
}

.faq-hero__shape--one { top: 60px; left: 41%; width: 270px; height: 270px; }
.faq-hero__shape--two { top: 125px; left: 47%; width: 165px; height: 165px; }

.faq-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 475px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
    padding-top: 58px;
}

.faq-hero__copy { position: relative; z-index: 2; max-width: 620px; padding-bottom: 45px; }

.faq-hero h1 {
    max-width: 700px;
    margin: 15px 0 16px;
    color: var(--faq-ink);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 650;
    line-height: .98;
    letter-spacing: -.05em;
}

.faq-hero h1::first-line { color: var(--faq-magenta); }

.faq-hero__copy > p {
    max-width: 520px;
    margin: 0;
    color: #5f596a;
    font-size: 17px;
    line-height: 1.55;
}

.faq-search {
    display: flex;
    width: min(540px, 100%);
    height: 58px;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
    padding: 0 18px;
    border: 1px solid rgba(116, 0, 111, .14);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(71, 35, 83, .09);
    color: var(--faq-magenta);
}

.faq-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--faq-ink);
    font-size: 14px;
}

.faq-search input::placeholder { color: #918a98; }
.faq-search button { border: 0; background: transparent; color: #877f8d; }

.faq-hero__visual {
    position: relative;
    align-self: end;
    height: 425px;
}

.faq-hero__visual img {
    position: absolute;
    right: -15px;
    bottom: 0;
    width: min(565px, 112%);
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 25px rgba(57, 23, 65, .15));
    animation: faq-bot-float 4s ease-in-out infinite;
}

.faq-hero__bubble {
    position: absolute;
    z-index: 3;
    top: 50px;
    right: 0;
    max-width: 185px;
    padding: 16px 18px;
    border: 1px solid rgba(116, 0, 111, .14);
    border-radius: 48% 52% 45% 55% / 49% 44% 56% 51%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(54, 25, 66, .1);
    color: var(--faq-purple);
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transform: rotate(-3deg);
}

.faq-hero__bubble::after {
    position: absolute;
    bottom: -16px;
    left: 28px;
    width: 20px;
    height: 22px;
    background: #fff;
    content: "";
    clip-path: polygon(0 0, 100% 0, 25% 100%);
}

@keyframes faq-bot-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.faq-content {
    padding: 34px 0 85px;
    background: #fff;
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 60px;
}

.faq-categories button {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #635b6d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: .22s ease;
}

.faq-categories button i { color: var(--faq-magenta); font-size: 21px; }
.faq-categories button:hover { border-color: rgba(165, 0, 142, .35); color: var(--faq-magenta); }
.faq-categories button.is-active { border-color: var(--faq-magenta); background: transparent; color: var(--faq-magenta); box-shadow: none; }
.faq-categories button.is-active i { color: var(--faq-magenta); }

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 28px;
}

.faq-main__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.faq-main__heading h2,
.faq-help h2,
.faq-shortcuts h2 {
    margin: 9px 0 0;
    color: var(--faq-ink);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.faq-result-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 18px;
    background: var(--faq-soft);
    color: #776e7e;
    font-size: 11px;
}

.faq-list { display: grid; gap: 10px; }
.faq-item { overflow: hidden; border: 0; border-bottom: 1px solid var(--faq-line); border-radius: 0; background: transparent; transition: border-color .2s ease; }
.faq-item:not([hidden]):has(.faq-question[aria-expanded="true"]) { border-color: rgba(165, 0, 142, .4); box-shadow: none; }
.faq-item[hidden] { display: none; }
.faq-item h3 { margin: 0; }

.faq-question {
    display: grid;
    width: 100%;
    min-height: 66px;
    grid-template-columns: 34px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 13px;
    padding: 12px 19px;
    border: 0;
    background: transparent;
    color: var(--faq-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
}

.faq-question__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--faq-soft);
    color: var(--faq-magenta);
    font-size: 12px;
}

.faq-question__chevron { justify-self: end; color: var(--faq-purple); font-size: 11px; transition: transform .2s ease; }
.faq-question[aria-expanded="true"] { background: transparent; color: var(--faq-magenta); }
.faq-question[aria-expanded="true"] .faq-question__icon { background: var(--faq-magenta); color: #fff; }
.faq-question[aria-expanded="true"] .faq-question__chevron { transform: rotate(180deg); }

.faq-answer__inner { padding: 5px 65px 24px; }
.faq-answer__category { display: inline-block; margin-bottom: 8px; color: var(--faq-magenta); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.faq-answer p { margin: 0 0 13px; color: var(--faq-muted); font-size: 13px; line-height: 1.65; }
.faq-answer a { color: var(--faq-magenta); font-size: 11px; font-weight: 700; }
.faq-answer a i { margin-left: 6px; }

.faq-help {
    position: sticky;
    top: 110px;
    min-height: 540px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(155deg, #f7f2ff 0%, #e5d7fa 58%, #d7f5f7 100%);
}

.faq-help::before {
    position: absolute;
    top: -85px;
    right: -80px;
    width: 240px;
    height: 240px;
    border: 45px solid rgba(165, 0, 142, .07);
    border-radius: 50%;
    content: "";
}

.faq-help__copy { position: relative; z-index: 2; padding: 34px 30px 0; }
.faq-help h2 { font-size: 31px; }
.faq-help p { margin: 15px 0 18px; color: #665e70; font-size: 13px; line-height: 1.55; }
.faq-help a { color: var(--faq-magenta); font-size: 11px; font-weight: 700; }
.faq-help a i { margin-left: 6px; }
.faq-help > img { position: absolute; right: -28px; bottom: -34px; width: 290px; filter: drop-shadow(0 18px 20px rgba(67, 25, 73, .15)); animation: faq-bot-float 4.5s ease-in-out infinite; }

.faq-empty { padding: 55px 20px; border: 1px dashed #d7ccdd; border-radius: 8px; background: var(--faq-soft); text-align: center; }
.faq-empty i { margin-bottom: 15px; color: var(--faq-magenta); font-size: 35px; }
.faq-empty h3 { margin: 0 0 8px; color: var(--faq-ink); font-size: 18px; }
.faq-empty p { margin: 0; color: var(--faq-muted); font-size: 13px; }

.faq-shortcuts { padding: 34px 0; background: linear-gradient(110deg, #f3eaff, #f9f7ff 55%, #e7f8fb); }
.faq-shortcuts__inner { display: grid; grid-template-columns: 170px minmax(200px, .8fr) minmax(450px, 1.6fr); align-items: center; gap: 28px; }
.faq-shortcuts__inner > img { width: 175px; height: 140px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(57, 26, 64, .14)); }
.faq-shortcuts h2 { font-size: 26px; }
.faq-shortcuts__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.faq-shortcuts__links a { display: flex; min-height: 100px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 0; border-bottom: 2px solid rgba(116, 0, 111, .16); border-radius: 0; background: transparent; color: var(--faq-ink); font-size: 10px; font-weight: 700; line-height: 1.3; text-align: center; transition: .2s ease; }
.faq-shortcuts__links a:hover { border-color: var(--faq-magenta); color: var(--faq-magenta); }
.faq-shortcuts__links i { color: var(--faq-magenta); font-size: 22px; }

/* Propuesta 2: interfaz conversacional */
.faq-propuesta-2 .faq-hero { background: linear-gradient(120deg, #22112f 0%, #5c135f 57%, #007d86 145%); }
.faq-propuesta-2 .faq-hero::after { border-color: rgba(255,255,255,.06); }
.faq-propuesta-2 .faq-hero__shape { border-color: rgba(255,255,255,.12); }
.faq-propuesta-2 .faq-hero .faq-eyebrow,
.faq-propuesta-2 .faq-hero h1 { color: #fff; }
.faq-propuesta-2 .faq-hero__copy > p { color: rgba(255,255,255,.72); }
.faq-propuesta-2 .faq-hero__visual img { width: 620px; height: 440px; }
.faq-propuesta-2 .faq-hero__bubble { background: var(--faq-cyan); border: 0; color: #071f22; }
.faq-propuesta-2 .faq-hero__bubble::after { background: var(--faq-cyan); }
.faq-propuesta-2 .faq-categories { grid-template-columns: repeat(6, 1fr); padding: 18px; border-radius: 0; background: transparent; }
.faq-propuesta-2 .faq-categories button:first-child { grid-column: span 6; min-height: 44px; flex-direction: row; }
.faq-propuesta-2 .faq-layout { grid-template-columns: 310px minmax(0, 1fr); }
.faq-propuesta-2 .faq-main { order: 2; }
.faq-propuesta-2 .faq-help { order: 1; background: linear-gradient(155deg, #25132f, #6e156d); color: #fff; }
.faq-propuesta-2 .faq-help .faq-eyebrow,
.faq-propuesta-2 .faq-help h2 { color: #fff; }
.faq-propuesta-2 .faq-help p { color: rgba(255,255,255,.7); }
.faq-propuesta-2 .faq-help a { display: inline-flex; padding: 11px 17px; border-radius: 22px; background: #fff; color: var(--faq-magenta); }
.faq-propuesta-2 .faq-item { overflow: visible; border: 0; background: transparent; }
.faq-propuesta-2 .faq-question { border: 0; border-bottom: 1px solid var(--faq-line); border-radius: 0; box-shadow: none; }
.faq-propuesta-2 .faq-answer { margin: 8px 0 5px 45px; border-radius: 0; background: transparent; }
.faq-propuesta-2 .faq-answer__inner { padding: 20px 24px; }

/* Propuesta 3: centro de ayuda */
.faq-propuesta-3 .faq-hero { min-height: 555px; background: #f8f7fb; }
.faq-propuesta-3 .faq-hero__inner { min-height: 555px; grid-template-columns: 1.12fr .88fr; }
.faq-propuesta-3 .faq-hero__copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.faq-propuesta-3 .faq-hero h1 { font-size: clamp(42px, 4.5vw, 65px); }
.faq-propuesta-3 .faq-search { width: 100%; height: 68px; border: 2px solid rgba(165,0,142,.18); border-radius: 34px; padding: 0 25px; }
.faq-propuesta-3 .faq-hero__visual { height: 490px; border-radius: 0 0 160px 160px; background: linear-gradient(155deg, #e9ddfb, #dff8f9); }
.faq-propuesta-3 .faq-hero__visual img { right: -50px; width: 640px; }
.faq-propuesta-3 .faq-hero__bubble { top: 85px; right: auto; left: -25px; }
.faq-propuesta-3 .faq-content { padding-top: 55px; }
.faq-propuesta-3 .faq-categories { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.faq-propuesta-3 .faq-categories button { min-height: 105px; flex-direction: row; justify-content: flex-start; gap: 15px; padding: 18px 22px; text-align: left; }
.faq-propuesta-3 .faq-categories button:first-child { grid-column: span 3; min-height: 54px; justify-content: center; }
.faq-propuesta-3 .faq-categories button i { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 0; background: transparent; }
.faq-propuesta-3 .faq-categories button.is-active i { background: transparent; }
.faq-propuesta-3 .faq-item { border-radius: 0; border-width: 0 0 1px; }
.faq-propuesta-3 .faq-question { padding-left: 6px; }

@media (max-width: 1199px) {
    .faq-proposal-switcher { top: auto; right: 18px; bottom: 18px; display: flex; width: auto; transform: none; }
    .faq-proposal-switcher > span, .faq-proposal-switcher small { display: none; }
    .faq-proposal-switcher a { display: grid; min-width: 43px; grid-template-columns: 1fr; text-align: center; }
    .faq-categories { grid-template-columns: repeat(4, 1fr); }
    .faq-categories button:first-child { grid-column: auto; }
    .faq-shortcuts__inner { grid-template-columns: 130px 1fr; }
    .faq-shortcuts__inner > img { width: 130px; }
    .faq-shortcuts__links { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
    .faq-hero__inner, .faq-propuesta-3 .faq-hero__inner { grid-template-columns: 1fr 330px; }
    .faq-hero__visual { height: 390px; }
    .faq-hero__bubble { display: none; }
    .faq-layout, .faq-propuesta-2 .faq-layout { grid-template-columns: 1fr; }
    .faq-propuesta-2 .faq-main { order: 1; }
    .faq-propuesta-2 .faq-help { order: 2; }
    .faq-help { position: relative; top: auto; min-height: 330px; }
    .faq-help__copy { max-width: 62%; }
    .faq-help > img { width: 280px; }
    .faq-propuesta-3 .faq-categories { grid-template-columns: repeat(2, 1fr); }
    .faq-propuesta-3 .faq-categories button:first-child { grid-column: span 2; }
}

@media (max-width: 767px) {
    .faq-hero, .faq-propuesta-3 .faq-hero { min-height: 690px; }
    .faq-hero__inner, .faq-propuesta-3 .faq-hero__inner { min-height: 690px; grid-template-columns: 1fr; padding-top: 48px; }
    .faq-hero__copy { padding-bottom: 0; }
    .faq-hero h1, .faq-propuesta-3 .faq-hero h1 { font-size: 43px; }
    .faq-hero__copy > p { font-size: 15px; }
    .faq-hero__visual, .faq-propuesta-3 .faq-hero__visual { height: 315px; border-radius: 0; background: transparent; }
    .faq-hero__visual img, .faq-propuesta-2 .faq-hero__visual img, .faq-propuesta-3 .faq-hero__visual img { right: 0; width: 100%; height: 330px; }
    .faq-content { padding-top: 25px; }
    .faq-categories, .faq-propuesta-2 .faq-categories, .faq-propuesta-3 .faq-categories { display: flex; margin-right: -15px; margin-left: -15px; padding: 0 15px 14px; overflow-x: auto; background: transparent; }
    .faq-categories button, .faq-propuesta-2 .faq-categories button:first-child, .faq-propuesta-3 .faq-categories button, .faq-propuesta-3 .faq-categories button:first-child { min-width: 135px; min-height: 82px; flex-direction: column; justify-content: center; padding: 10px; text-align: center; }
    .faq-main__heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .faq-question { grid-template-columns: minmax(0, 1fr) 22px; padding: 15px; font-size: 12px; }
    .faq-question__icon { display: none; }
    .faq-answer__inner { padding: 8px 37px 22px 15px; }
    .faq-propuesta-2 .faq-answer { margin-left: 15px; }
    .faq-help { min-height: 430px; }
    .faq-help__copy { max-width: 100%; }
    .faq-help > img { right: -45px; width: 240px; opacity: .42; }
    .faq-shortcuts__inner { grid-template-columns: 1fr; text-align: center; }
    .faq-shortcuts__inner > img { justify-self: center; }
    .faq-shortcuts__copy .faq-eyebrow { justify-content: center; }
    .faq-shortcuts__links { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .faq-hero__visual img,
    .faq-help > img { animation: none; }
    .faq-categories button,
    .faq-shortcuts__links a { transition: none; }
}
