/* =============================================================
   witch.es.css — las secciones de la portada, en el mismo orden
   en que aparecen en index.html.
   ============================================================= */

/* Patrón común: una sección centrada con su antetítulo y su título */
.cs,
.feature,
.steps,
.integration,
.faqs,
.cta-final {
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 96px var(--gutter);
}

.cs-subtitle,
.feature-subtitle,
.steps-subtitle,
.integration-subtitle,
.faqs-subtitle {
    margin-bottom: 14px;
    font-family: var(--titulos);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--morado);
}

.cs-title,
.feature-title,
.steps-title,
.integration-title,
.faqs-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
}

.cs-text,
.faqs-text,
.integration-text {
    margin-top: 18px;
    max-width: 62ch;
    color: var(--gris);
    font-size: 18px;
}

/* ════════════════════════════════════════════════════════════
   Portada
   ════════════════════════════════════════════════════════════ */
.header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 88% -5%, rgba(248, 2, 130, .10), transparent 62%),
        linear-gradient(170deg, var(--lila-150) 0%, var(--lila-100) 48%, var(--blanco) 100%);
}

/* Resplandor morado que cruza la portada por detrás del contenido */
.header-overlay {
    position: absolute;
    top: -220px;
    left: -140px;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .16), transparent 65%);
    pointer-events: none;
}

.header__wrapper {
    position: relative;
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 84px var(--gutter) 104px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
}

.header-title {
    font-size: clamp(36px, 5.2vw, 60px);
    font-weight: 700;
    letter-spacing: -.035em;
}

.header-text {
    margin-top: 22px;
    max-width: 48ch;
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--gris);
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 34px;
}

/* Botón principal: el texto de data-text se usa para el relleno al pasar por encima */
.header-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    padding: 15px 32px;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--morado), var(--rosa));
    color: var(--blanco);
    font-family: var(--titulos);
    font-weight: 600;
    font-size: 16.5px;
    box-shadow: 0 14px 30px rgba(124, 58, 237, .32);
    transition: transform .2s ease, box-shadow .2s ease;
}

.header-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(100deg, var(--rosa), var(--morado));
    opacity: 0;
    transition: opacity .25s ease;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(248, 2, 130, .32);
}

.header-btn:hover::before {
    opacity: 1;
}

.hero__link {
    font-weight: 600;
    color: var(--morado);
    border-bottom: 2px solid transparent;
    transition: border-color .18s ease;
}

.hero__link:hover {
    border-bottom-color: var(--morado);
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 34px;
    font-size: 15px;
    color: #4a4458;
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__facts .icon {
    width: 20px;
    height: 20px;
    color: var(--morado);
}

/* ── La demo del directo ─────────────────────────────────────── */
.demo {
    padding: 18px;
    border-radius: 22px;
    background: var(--blanco);
    border: 1px solid var(--lila-300);
    box-shadow: var(--sombra-lg);
}

.demo__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--lila-300);
}

.demo__live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--rosa);
    color: var(--blanco);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.demo__live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: latido 1.6s ease-in-out infinite;
}

@keyframes latido {
    50% {
        opacity: .25;
    }
}

.demo__word {
    font-size: 12.5px;
    color: var(--gris);
}

.demo__word strong {
    color: var(--morado);
    font-weight: 700;
}

.demo__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.demo__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--titulos);
    font-size: 12px;
    font-weight: 600;
    color: var(--gris);
}

.demo__count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 2px;
    border-radius: 999px;
    background: var(--lila-200);
    color: var(--morado-tinta);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
}

.demo__total {
    color: var(--tinta);
    font-weight: 700;
}

.demo__chat,
.demo__orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 272px;
    overflow: hidden;
}

.demo__chat {
    justify-content: flex-end;
}

.demo__msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--lila-100);
    border: 1px solid var(--lila-300);
    font-size: 12.5px;
    line-height: 1.35;
}

.demo__msg--buy {
    background: var(--lila-200);
    border-color: var(--morado);
}

.demo__avatar {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--avatar, var(--lila-500));
    border: 1px solid rgba(0, 0, 0, .06);
}

.demo__msg-name,
.demo__msg-text {
    display: block;
}

.demo__msg-name {
    font-size: 10.5px;
    color: var(--gris);
}

.demo__msg--buy .demo__msg-name {
    color: var(--morado-tinta);
}

.demo__msg-text {
    font-weight: 500;
}

.demo__msg--buy .demo__msg-text {
    font-weight: 700;
}

.demo__order {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--blanco);
    border: 1px solid var(--lila-300);
    box-shadow: var(--sombra-sm);
    font-size: 12.5px;
}

.demo__order-name {
    font-weight: 700;
}

.demo__order-detail {
    font-size: 11.5px;
    color: var(--gris);
}

.demo__order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 3px;
}

.demo__order-price {
    font-weight: 700;
}

.demo__state {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--lila-200);
    color: var(--morado-tinta);
    font-size: 10px;
    font-weight: 700;
}

.demo__state--done {
    background: var(--morado);
    color: var(--blanco);
}

/* Entrada de los elementos que añade hero-demo.js */
.demo__msg--in,
.demo__order--in {
    animation: entra-demo .4s cubic-bezier(.2, .8, .2, 1);
}

@keyframes entra-demo {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ════════════════════════════════════════════════════════════
   Comment selling: las tres formas de vender
   ════════════════════════════════════════════════════════════ */
.cs-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
}

.cs-option {
    padding: 28px;
    border-radius: var(--radio);
    background: var(--lila-100);
    border: 1px solid var(--lila-300);
}

.cs-option__title {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--lila-300);
    font-size: 20px;
    font-weight: 600;
}

.cs-option__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-option__list dt {
    font-family: var(--titulos);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gris-claro);
}

.cs-option__list dd {
    margin-top: 3px;
    font-size: 15.5px;
    line-height: 1.5;
}

/* La columna de witch.es destaca sobre las otras dos */
.cs-option--witch {
    position: relative;
    background: linear-gradient(165deg, #2a1259, var(--tinta));
    border-color: transparent;
    color: var(--blanco);
    box-shadow: var(--sombra);
}

.cs-option--witch .cs-option__title {
    border-bottom-color: rgba(255, 255, 255, .16);
}

.cs-option--witch .cs-option__list dt {
    color: var(--lila-500);
}

.cs-option--witch .cs-option__list dd {
    color: rgba(255, 255, 255, .86);
}

/* ════════════════════════════════════════════════════════════
   Características + teléfono
   ════════════════════════════════════════════════════════════ */
.feature-title {
    max-width: 20ch;
}

.showcase {
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 72px;
    margin-top: 56px;
}

.showcase__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showcase__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radio);
    border: 1px solid transparent;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.showcase__item--active {
    background: var(--lila-100);
    border-color: var(--lila-300);
}

.showcase__icon {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 14px;
}

.showcase__title {
    font-size: 19px;
    font-weight: 600;
}

.showcase__button {
    padding: 0;
    text-align: left;
    font: inherit;
    letter-spacing: inherit;
    transition: color .2s ease;
}

.showcase__item--active .showcase__button {
    color: var(--morado);
}

.showcase__text {
    margin-top: 7px;
    font-size: 15.5px;
    color: var(--gris);
}

/* ── El teléfono ─────────────────────────────────────────────── */
.showcase__phone {
    display: flex;
    justify-content: center;
}

.phone {
    width: 290px;
    padding: 12px;
    border-radius: 42px;
    background: var(--tinta);
    box-shadow: var(--sombra-lg);
}

.phone__screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 18.5;
    border-radius: 32px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #5b21b6, #a21caf 55%, var(--rosa));
}

/* El vestido es el "vídeo" del directo: una silueta de fondo */
.phone__dress {
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: 185px;
    transform: translateX(-50%);
    opacity: .17;
    pointer-events: none;
}

.phone__top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone__live {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--rosa);
    color: var(--blanco);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .06em;
}

.phone__viewers {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .3);
    color: var(--blanco);
    font-size: 10.5px;
    font-weight: 600;
}

/* Las escenas: solo se ve la activa */
.scene {
    position: relative;
    display: none;
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    animation: entra-escena .35s ease;
}

.scene--active {
    display: block;
}

@keyframes entra-escena {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.scene__tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--lila-200);
    color: var(--morado-tinta);
    font-size: 10px;
    font-weight: 700;
}

.scene__name {
    font-family: var(--titulos);
    font-size: 15px;
    font-weight: 700;
}

.scene__detail {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--gris);
}

.scene__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.scene__row--total {
    padding-top: 10px;
    border-top: 1px solid var(--lila-300);
    font-size: 12.5px;
    color: var(--gris);
}

.scene__amount {
    font-family: var(--titulos);
    font-size: 17px;
    font-weight: 700;
    color: var(--tinta);
}

.scene__amount--end {
    display: block;
    margin-top: 10px;
    text-align: right;
}

.scene__pill {
    padding: 3px 9px;
    border-radius: 999px;
    background: #fdf2d6;
    color: #8a5a00;
    font-size: 9.5px;
    font-weight: 700;
}

/* La escena de la etiqueta imita un tique térmico */
.scene--ticket {
    border-radius: 6px;
    background: #fffdf7;
    border: 1px dashed #c9c1b2;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.scene__shop {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #c9c1b2;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.scene__label {
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gris-claro);
}

.scene--ticket .scene__name,
.scene--ticket .scene__detail,
.scene--ticket .scene__amount {
    font-family: inherit;
}

.scene__sizes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 8px 0;
}

.scene__size {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--lila-100);
    font-size: 12px;
    font-weight: 500;
}

.scene__size b {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--blanco);
    border: 1px solid var(--lila-400);
    font-size: 10.5px;
}

.scene__size--out {
    background: #fdeaf2;
    color: #a10d50;
    text-decoration: line-through;
}

.scene__size--out b {
    border-color: #f6bcd6;
    text-decoration: none;
}

.scene__action {
    margin-top: 10px;
    padding: 8px;
    border-radius: 9px;
    background: var(--morado);
    color: var(--blanco);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

/* El chat del directo, al pie del teléfono */
.phone__chat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.phone__msg {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 11px;
    background: rgba(0, 0, 0, .34);
    color: var(--blanco);
    font-size: 11.5px;
    line-height: 1.3;
    backdrop-filter: blur(3px);
}

.phone__msg--buy {
    background: rgba(255, 255, 255, .95);
    color: var(--tinta);
}

.phone__avatar {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--avatar, var(--lila-500));
}

.phone__msg-name,
.phone__msg-text {
    display: block;
}

.phone__msg-name {
    font-size: 9.5px;
    opacity: .78;
}

.phone__msg--buy .phone__msg-name {
    color: var(--morado-tinta);
    opacity: 1;
}

.phone__msg--buy .phone__msg-text {
    font-weight: 700;
}

.phone__input {
    position: relative;
    margin-top: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .72);
    font-size: 11.5px;
}

/* ════════════════════════════════════════════════════════════
   Cómo funciona
   ════════════════════════════════════════════════════════════ */
.steps {
    padding-top: 40px;
}

.steps__list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 52px;
    counter-reset: paso;
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    padding: 36px 44px;
    border-radius: 24px;
    background: var(--lila-100);
    border: 1px solid var(--lila-300);
}

/* Se alternan: los pares ponen la pantalla a la izquierda */
.step:nth-child(even) .step__body {
    order: 2;
}

.step__number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--morado), var(--rosa));
    color: var(--blanco);
    font-family: var(--titulos);
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .3);
}

.step__title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
}

.step__text {
    margin-top: 12px;
    max-width: 46ch;
    color: var(--gris);
    font-size: 16.5px;
}

.step__media {
    display: flex;
    justify-content: center;
}

.step__screen {
    width: 100%;
    max-width: 440px;
    filter: drop-shadow(0 18px 34px rgba(26, 16, 54, .18));
}

/* ════════════════════════════════════════════════════════════
   Cifras
   ════════════════════════════════════════════════════════════ */
.stats {
    padding: 0 var(--gutter);
}

.stats__container {
    position: relative;
    overflow: hidden;
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 76px 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #3b0f73, #7c3aed 52%, var(--rosa));
    color: var(--blanco);
    text-align: center;
}

.stats-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 0%, rgba(255, 255, 255, .18), transparent 70%);
}

.stats-title {
    position: relative;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
}

.stats__wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stats-card {
    padding: 28px 20px;
    border-radius: var(--radio);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
}

.stats-card-total {
    font-family: var(--titulos);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.stats-card-title {
    margin-top: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, .84);
}

/* ════════════════════════════════════════════════════════════
   Integración
   ════════════════════════════════════════════════════════════ */
.integration-info {
    max-width: 44ch;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 52px;
}

.timeline__step {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 32px;
    padding: 30px 34px;
    border-radius: 22px;
    background: var(--blanco);
    border: 1px solid var(--lila-300);
    box-shadow: var(--sombra-sm);
}

.timeline__step--live {
    background: var(--lila-100);
    border-color: var(--morado);
    box-shadow: 0 16px 40px rgba(124, 58, 237, .14);
}

.timeline__when {
    font-family: var(--titulos);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--morado);
}

.timeline__step--live .timeline__when {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.timeline__step--live .timeline__when::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rosa);
    animation: latido 1.6s ease-in-out infinite;
}

.timeline__title {
    font-size: 23px;
    font-weight: 600;
}

.timeline__text {
    margin-top: 10px;
    max-width: 62ch;
    color: var(--gris);
    font-size: 16px;
}

.timeline__tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 26px;
}

.tool {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tool__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: var(--lila-200);
    color: var(--morado);
}

.timeline__step--live .tool__icon {
    background: var(--blanco);
    border: 1px solid var(--lila-300);
}

.tool__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.tool__badge {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--lila-200);
    color: var(--morado-tinta);
    font-family: var(--fuente);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tool__text {
    margin-top: 5px;
    font-size: 14.5px;
    color: var(--gris);
}

.tool__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tool__tags li {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--blanco);
    border: 1px solid var(--lila-400);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--morado-tinta);
}

.timeline__step--live .tool__tags li {
    background: var(--lila-200);
    border-color: transparent;
}

/* ════════════════════════════════════════════════════════════
   Preguntas frecuentes
   ════════════════════════════════════════════════════════════ */
.faqs__content {
    text-align: center;
}

.faqs-text {
    margin-inline: auto;
}

/* El buscador solo aparece si el JS ha podido activarlo */
.faqs-search {
    display: none;
    max-width: 520px;
    margin: 36px auto 0;
}

.faqs--js .faqs-search {
    display: block;
}

.faqs-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 18px;
    border-radius: 999px;
    background: var(--lila-100);
    border: 1px solid var(--lila-300);
    color: var(--gris-claro);
    transition: border-color .2s ease, background-color .2s ease;
}

.faqs-search__field:focus-within {
    background: var(--blanco);
    border-color: var(--morado);
}

.faqs-search__input {
    flex: 1;
    padding: 13px 0;
    border: 0;
    background: none;
    color: var(--tinta);
    font: inherit;
    font-size: 16px;
}

.faqs-search__input:focus {
    outline: none;
}

.faqs-search__status {
    margin-top: 10px;
    text-align: center;
    font-size: 13.5px;
    color: var(--gris);
    min-height: 1.4em;
}

.faqs__groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: start;
}

.faqs-group__title {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gris-claro);
}

.faqs__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq {
    border-radius: 14px;
    background: var(--lila-100);
    border: 1px solid var(--lila-300);
    transition: border-color .2s ease, background-color .2s ease;
}

.faq--open {
    background: var(--blanco);
    border-color: var(--morado);
    box-shadow: var(--sombra-sm);
}

.faq__heading {
    font-size: inherit;
}

.faq__button {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 17px 18px;
    text-align: left;
}

.faq__question {
    font-family: var(--titulos);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
}

.faq__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--blanco);
    border: 1px solid var(--lila-400);
    color: var(--morado);
    transition: transform .25s ease, background-color .2s ease, color .2s ease;
}

.faq__icon .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.faq--open .faq__icon {
    transform: rotate(45deg);
    background: var(--morado);
    border-color: var(--morado);
    color: var(--blanco);
}

/* El panel se abre animando las filas del grid: sirve con cualquier altura */
.faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.faq--open .faq__panel {
    grid-template-rows: 1fr;
}

.faq__answer {
    overflow: hidden;
}

.faq__answer p {
    padding: 0 18px 18px;
    font-size: 15px;
    color: var(--gris);
}

/* Resultado de la búsqueda */
.faq[hidden],
.faqs-group[hidden] {
    display: none;
}

.faq__question mark {
    background: #fde68a;
    color: inherit;
    border-radius: 3px;
}

.faqs-empty {
    margin-top: 28px;
    text-align: center;
    color: var(--gris);
}

.faqs-empty a {
    color: var(--morado);
    font-weight: 600;
    text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════
   Cierre
   ════════════════════════════════════════════════════════════ */
.cta-final {
    text-align: center;
}

.cta-final-title {
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 700;
}

.cta-final-text {
    margin: 16px auto 32px;
    max-width: 52ch;
    color: var(--gris);
    font-size: 18px;
}

.cta-final .btn {
    padding: 15px 34px;
    font-size: 16.5px;
}

/* ════════════════════════════════════════════════════════════
   Aparición al hacer scroll (la pone effects.js)
   ════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}

.reveal--visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ════════════════════════════════════════════════════════════
   Pantallas estrechas
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .showcase {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .step {
        gap: 36px;
        padding: 32px;
    }
}

@media (max-width: 960px) {
    .cs,
    .feature,
    .steps,
    .integration,
    .faqs,
    .cta-final {
        padding: 72px var(--gutter);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .header__wrapper {
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .cs-compare,
    .faqs__groups {
        grid-template-columns: 1fr;
    }

    .cs-option--witch {
        order: -1;
    }

    .showcase {
        grid-template-columns: 1fr;
    }

    .showcase__phone {
        order: -1;
    }

    .step,
    .timeline__step {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .step:nth-child(even) .step__body {
        order: 0;
    }

    .stats__wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .demo__cols {
        grid-template-columns: 1fr;
    }

    .demo__chat,
    .demo__orders {
        height: auto;
        max-height: 210px;
    }

    .stats__container {
        padding: 56px 24px;
    }

    .timeline__tools {
        grid-template-columns: 1fr;
    }

    .cs-option,
    .step,
    .timeline__step {
        padding: 24px;
    }
}
