﻿/* ================================================
   MASCOTAQR — COMO FUNCIONA
   Estilos específicos de /como-funciona
   Usa variables de site.css — no las redefine
   ================================================ */

/* ================================================
   HERO
   ================================================ */
.cfq-hero {
    background: var(--gradient-hero);
    padding: 52px 0 60px;
    position: relative;
    overflow: hidden;
}

    .cfq-hero::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 40px;
        background: var(--bg-cream);
        clip-path: ellipse(55% 100% at 50% 100%);
    }

/* Breadcrumb */
.cfq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 0.82rem;
    font-weight: 500;
}

    .cfq-breadcrumb a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: var(--transition);
    }

        .cfq-breadcrumb a:hover {
            color: #fff;
        }

    .cfq-breadcrumb span {
        color: rgba(255,255,255,0.5);
    }

    .cfq-breadcrumb [data-lucide] {
        color: rgba(255,255,255,0.4);
    }

/* Eyebrow */
.cfq-hero__eyebrow {
    margin-bottom: 16px;
}

    .cfq-hero__eyebrow span {
        display: inline-block;
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.3);
        color: rgba(255,255,255,0.95);
        font-size: 0.82rem;
        font-weight: 600;
        padding: 5px 14px;
        border-radius: 50px;
        backdrop-filter: blur(4px);
    }

/* Título */
.cfq-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

    .cfq-hero__title em {
        font-style: normal;
        color: var(--secondary-light);
    }

/* Subtítulo */
.cfq-hero__subtitle {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 480px;
}

/* Meta datos */
.cfq-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

    .cfq-hero__meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: rgba(255,255,255,0.75);
        font-size: 0.85rem;
        font-weight: 500;
    }

    .cfq-hero__meta [data-lucide] {
        color: var(--secondary-light);
    }

/* Imagen */
.cfq-hero__img-wrap {
    position: relative;
    display: inline-block;
}

.cfq-hero__img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ================================================
   SECCIÓN PASOS
   ================================================ */
.cfq-steps {
    padding: 80px 0;
}

    .cfq-steps .cfq-section-header {
        margin-bottom: 64px;
    }

/* Cada paso */
.cfq-step {
    padding: 48px 0;
    border-bottom: 1px solid rgba(45,138,78,0.08);
}

    .cfq-step:last-of-type {
        border-bottom: none;
    }

/* Visual del paso — cuadrado con número e icono */
.cfq-step__visual {
    border-radius: var(--border-radius-lg);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    min-height: 220px;
    text-align: center;
}

.cfq-step__visual--green {
    background: var(--gradient-card);
    color: #fff;
}

.cfq-step__visual--orange {
    background: var(--gradient-cta);
    color: #fff;
}

.cfq-step__visual--white {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    backdrop-filter: blur(8px);
}

.cfq-step__num {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.25;
    letter-spacing: -0.04em;
    position: absolute;
    top: 16px;
    left: 20px;
}

.cfq-step__icon {
    position: relative;
    z-index: 1;
}

/* Contenido del paso */
.cfq-step__content {
    padding: 8px 0;
}

.cfq-step__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.3;
}

.cfq-step__text {
    font-size: 0.975rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Lista de checks */
.cfq-step__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .cfq-step__list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        color: var(--text-body);
        font-weight: 500;
    }

        .cfq-step__list li [data-lucide] {
            color: var(--primary);
            flex-shrink: 0;
        }

/* CTA inline del paso */
.cfq-step__cta {
    font-size: 0.9rem;
    padding: 12px 26px;
}

/* Nota de seguridad */
.cfq-step__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid rgba(45,138,78,0.2);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 4px;
}

    .cfq-step__note [data-lucide] {
        color: var(--primary);
        flex-shrink: 0;
    }

/* Badge del paso destacado */
.cfq-step__badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* Paso 4 destacado — fondo verde */
.cfq-step--highlight {
    border-bottom: none;
    padding: 0;
    margin-top: 8px;
}

.cfq-step--highlight__inner {
    background: var(--gradient-hero);
    border-radius: var(--border-radius-xl);
    padding: 56px 48px;
}

.cfq-step--highlight .cfq-step__title,
.cfq-step--highlight .cfq-step__text {
    color: #fff;
}

.cfq-step--highlight .cfq-step__text {
    color: rgba(255,255,255,0.85);
}

/* Timeline del paso 4 */
.cfq-step__timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.cfq-step__timeline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

    .cfq-step__timeline-item strong {
        color: #fff;
    }

.cfq-step__timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.6);
}

.cfq-step__timeline-dot--final {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    box-shadow: 0 0 0 4px rgba(245,130,31,0.3);
}

/* Divisor entre pasos */
.cfq-step-divider {
    text-align: center;
    padding: 8px 0;
    color: rgba(45,138,78,0.3);
}

/* ================================================
   COMPARATIVA
   ================================================ */
.cfq-comparativa {
    padding: 80px 0;
    background: #fff;
}

    .cfq-comparativa .cfq-section-header {
        margin-bottom: 48px;
    }

.cfq-comp-card {
    border-radius: var(--border-radius);
    padding: 36px 32px;
    height: 100%;
    transition: var(--transition);
}

    .cfq-comp-card:hover {
        transform: translateY(-4px);
    }

.cfq-comp-card--bad {
    background: #FFF5F5;
    border: 2px solid #FED7D7;
}

.cfq-comp-card--good {
    background: var(--bg-light);
    border: 2px solid rgba(45,138,78,0.25);
    box-shadow: var(--shadow-md);
}

.cfq-comp-card__header {
    margin-bottom: 24px;
}

.cfq-comp-card__badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
}

.cfq-comp-card__badge--bad {
    background: #FED7D7;
    color: #C53030;
}

.cfq-comp-card__badge--good {
    background: var(--primary);
    color: #fff;
}

.cfq-comp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .cfq-comp-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.4;
    }

.cfq-comp-list--bad li {
    color: #744210;
}

    .cfq-comp-list--bad li [data-lucide] {
        color: #E53E3E;
        flex-shrink: 0;
        margin-top: 2px;
    }

.cfq-comp-list--good li {
    color: var(--text-dark);
}

    .cfq-comp-list--good li [data-lucide] {
        color: var(--primary);
        flex-shrink: 0;
        margin-top: 2px;
    }

/* ================================================
   FAQS
   ================================================ */
.cfq-faqs {
    padding: 80px 0;
}

.cfq-faq-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================================================
   CTA FINAL
   ================================================ */
.cfq-cta-final {
    background: var(--gradient-hero);
    padding: 72px 0;
}

.cfq-cta-final__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cfq-cta-final__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cfq-cta-final__sub {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cfq-cta-final__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.cfq-cta-final__btn {
    font-size: 1rem;
    padding: 14px 32px;
}

.cfq-cta-final__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: var(--transition);
}

    .cfq-cta-final__link:hover {
        color: #fff;
        border-bottom-color: #fff;
        gap: 10px;
    }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991.98px) {
    .cfq-hero {
        padding: 40px 0 52px;
        text-align: center;
    }

    .cfq-hero__subtitle {
        margin: 0 auto 24px;
    }

    .cfq-hero__meta {
        justify-content: center;
    }

    .cfq-hero__img {
        max-width: 300px;
    }

    .cfq-step--highlight__inner {
        padding: 40px 28px;
    }
}

@media (max-width: 767.98px) {
    .cfq-steps {
        padding: 56px 0;
    }

    .cfq-comparativa {
        padding: 56px 0;
    }

    .cfq-faqs {
        padding: 56px 0;
    }

    .cfq-cta-final {
        padding: 56px 0;
    }

    .cfq-step {
        padding: 36px 0;
    }

    .cfq-step__visual {
        min-height: 160px;
        padding: 32px 24px;
    }

    .cfq-step__num {
        font-size: 3rem;
    }

    .cfq-step__title {
        font-size: 1.2rem;
    }

    .cfq-cta-final__actions {
        flex-direction: column;
    }

    .cfq-cta-final__btn {
        width: 100%;
        text-align: center;
    }

    .cfq-comp-card {
        padding: 28px 20px;
    }
}
