/* ========================================
   RASTI - Garantía de Satisfacción Page
   ======================================== */

/* ── Page background ── */
.guarantee-page {
    background:
        radial-gradient(circle at 15% 10%, rgba(242, 158, 120, 0.18), transparent 32%),
        radial-gradient(circle at 85% 25%, rgba(189, 61, 117, 0.08), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(242, 158, 120, 0.10), transparent 35%),
        linear-gradient(180deg, #fff8fb 0%, #ffffff 28%, #fffaf4 100%);
}

/* ========================================
   HERO
   ======================================== */
.guarantee-hero {
    padding: calc(var(--navbar-height, 72px) + 3.5rem) 0 2.5rem;
    position: relative;
    overflow: visible;
}

.guarantee-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(242, 158, 120, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.12); }
}

.guarantee-hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.guarantee-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}


.guarantee-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(42, 157, 143, 0.09);
    border: 1px solid rgba(42, 157, 143, 0.18);
    color: #2A9D8F;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.guarantee-badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.guarantee-title {
    margin-top: 1.25rem;
    max-width: 14ch;
    font-size: clamp(2.4rem, 4.8vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--gray-900);
    font-weight: 800;
}

.guarantee-title-accent {
    color: var(--primary);
}

.guarantee-subtitle {
    margin-top: 1.25rem;
    max-width: 540px;
    font-size: 1.12rem;
    line-height: 1.72;
    color: var(--gray-600);
}

.guarantee-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.guarantee-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.07);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.05);
    color: var(--gray-800);
    font-size: 0.94rem;
    line-height: 1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guarantee-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.09);
}

.guarantee-quote-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Hero image */
.guarantee-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    min-width: 0;
}

.guarantee-hero-visual::before {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(189, 61, 117, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.guarantee-hero-img {
    display: block;
    width: 110%;
    max-width: none;
    height: auto;
    border-radius: 0;
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, black 48%, transparent 70%);
    mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, black 48%, transparent 70%);
}

/* ========================================
   SECTIONS & CARDS
   ======================================== */
.guarantee-section {
    padding: 2rem 0;
}

.guarantee-section-alt {
    padding-top: 0.5rem;
}

.guarantee-section-last {
    padding-top: 0.5rem;
    padding-bottom: 5rem;
}

/* ── Animate on scroll ── */
.guarantee-animate {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.guarantee-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.guarantee-animate:nth-child(2) { transition-delay: 120ms; }
.guarantee-animate:nth-child(3) { transition-delay: 240ms; }
.guarantee-animate:nth-child(4) { transition-delay: 360ms; }

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

/* ── Card base ── */
.guarantee-card {
    border: 1px solid rgba(189, 61, 117, 0.10);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 52px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.guarantee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 64px rgba(17, 24, 39, 0.10);
}

.guarantee-intro-card {
    padding: 2.5rem;
}

/* ── Kicker labels ── */
.guarantee-section-kicker {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(189, 61, 117, 0.09);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── Section titles ── */
.guarantee-section-title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--gray-900);
    font-weight: 800;
}

.guarantee-section-title-sm {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* ── Prose (intro card) ── */
.guarantee-prose {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.85rem;
}

.guarantee-prose p,
.guarantee-action-copy,
.guarantee-closing,
.guarantee-note,
.guarantee-step-text,
.guarantee-list-item {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--gray-600);
}

/* ── Grid (steps + conditions) ── */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.guarantee-grid .guarantee-card {
    padding: 2rem;
}

/* ── Steps list (timeline) ── */
.guarantee-steps {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.guarantee-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.65rem 0;
    position: relative;
}

.guarantee-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(189, 61, 117, 0.2);
}

.guarantee-step-icon {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── Conditions list ── */
.guarantee-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.guarantee-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.guarantee-list-item::before {
    content: "";
    flex: 0 0 0.75rem;
    width: 0.75rem;
    height: 0.75rem;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 0 5px rgba(189, 61, 117, 0.07);
}

/* ── Note divider ── */
.guarantee-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

/* ========================================
   ACTION CARD (CTA)
   ======================================== */
.guarantee-action-card {
    padding: 3rem 2.5rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(189, 61, 117, 0.03) 0%, rgba(242, 158, 120, 0.04) 100%),
        rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(189, 61, 117, 0.14);
}

.guarantee-action-copy {
    margin-top: 1rem;
}

.guarantee-action-button {
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(189, 61, 117, 0.2);
    transition: all 0.3s ease;
}

.guarantee-action-button:hover {
    box-shadow: 0 8px 28px rgba(189, 61, 117, 0.3);
    transform: translateY(-3px);
}

.guarantee-closing {
    max-width: 620px;
    margin: 1.5rem auto 0;
    font-style: italic;
    color: var(--gray-500);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .guarantee-grid {
        grid-template-columns: 1fr;
    }

    .guarantee-hero-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .guarantee-badge {
        align-self: center;
    }

    .guarantee-title {
        max-width: none;
    }

    .guarantee-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .guarantee-hero-highlights {
        justify-content: center;
    }

    /* Image between subtitle and highlights on mobile */
    .guarantee-hero-copy {
        display: contents;
    }

    .guarantee-hero-layout .guarantee-badge {
        order: 1;
    }

    .guarantee-hero-layout .guarantee-title {
        order: 2;
    }

    .guarantee-hero-layout .guarantee-hero-visual {
        order: 3;
    }

    .guarantee-hero-layout .guarantee-subtitle {
        order: 4;
    }

    .guarantee-hero-layout .guarantee-hero-highlights {
        order: 5;
    }

    .guarantee-hero-img {
        max-width: 280px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .guarantee-hero {
        padding-top: calc(var(--navbar-height, 72px) + 3rem + env(safe-area-inset-top));
    }

    .guarantee-quote,
    .guarantee-hero-highlights {
        width: 100%;
    }

    .guarantee-intro-card,
    .guarantee-grid .guarantee-card,
    .guarantee-action-card {
        padding: 1.5rem;
        border-radius: 1.4rem;
    }

    .guarantee-section {
        padding: 1rem 0;
    }

    .guarantee-section-last {
        padding-bottom: 3rem;
    }

    .guarantee-hero-img {
        max-width: 240px;
    }


}

@media (max-width: 480px) {
    .guarantee-hero-img {
        max-width: 200px;
    }

    .guarantee-action-card {
        padding: 1.25rem;
    }
}
