/* ========================================
   RASTI - ¿Qué es Rasti? Page
   ======================================== */

.what-rasti-page {
    background:
        radial-gradient(circle at top left, rgba(255, 222, 89, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(189, 61, 117, 0.08), transparent 26%),
        linear-gradient(180deg, #fffefb 0%, #fffaf6 34%, #ffffff 100%);
}

.what-rasti-section {
    padding: 3.4rem 0;
}

.what-rasti-section + .what-rasti-section {
    border-top: 1px solid rgba(31, 42, 68, 0.05);
}

.what-rasti-hero-section {
    padding-top: calc(var(--navbar-height, 72px) + 4rem);
    padding-bottom: 1.35rem;
    border-top: 0;
    overflow: visible;
}

.what-rasti-hero-grid,
.what-rasti-enterprise-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 2rem;
    align-items: center;
}

.what-rasti-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.78rem;
    border-radius: 999px;
    background: rgba(189, 61, 117, 0.08);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.what-rasti-section-kicker {
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 2.8vw, 2.55rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-transform: none;
    max-width: 18ch;
}

.what-rasti-title {
    margin: 0;
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1.04;
    letter-spacing: -0.01em;
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    max-width: 7.6ch;
}

.what-rasti-section-title {
    margin: 0;
    font-family: inherit;
    color: var(--gray-700);
    line-height: 1.8;
    letter-spacing: 0;
    font-size: 1.03rem;
    font-weight: 400;
    max-width: 62ch;
}

.what-rasti-lead,
.what-rasti-section-copy {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.03rem;
    line-height: 1.8;
    max-width: 62ch;
}

.what-rasti-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.what-rasti-eyebrow,
.what-rasti-section-kicker {
    align-self: flex-start;
}

.what-rasti-enterprise-copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: #fffdf9;
    border-radius: 24px;
    padding: 1.85rem 1.9rem;
    border: 1px solid rgba(242, 158, 120, 0.28);
    box-shadow: 0 10px 24px rgba(189, 61, 117, 0.06);
}

.what-rasti-pull-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.2rem 1.25rem 1.2rem 1.4rem;
    border-left: 4px solid #f29e78;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 255, 255, 0.96));
    border-radius: 0 18px 18px 0;
    box-shadow: 0 10px 22px rgba(31, 42, 68, 0.06);
}

.what-rasti-pull-quote::before {
    content: "“";
    position: absolute;
    top: -0.1rem;
    left: 0.85rem;
    font-family: var(--font-display);
    font-size: 3.3rem;
    line-height: 1;
    color: rgba(189, 61, 117, 0.14);
    pointer-events: none;
}

.what-rasti-pull-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    position: relative;
    z-index: 1;
}

.what-rasti-pull-text {
    margin: 0;
    padding-left: 0.35rem;
    color: var(--gray-900);
    font-size: 1.08rem;
    line-height: 1.72;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.what-rasti-hero-meta {
    display: grid;
    grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
    gap: 0.95rem;
}

.what-rasti-stat,
.what-rasti-mini-card,
.what-rasti-point-card,
.what-rasti-format-card,
.what-rasti-type-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(31, 42, 68, 0.08);
    box-shadow: 0 12px 28px rgba(20, 23, 38, 0.06);
}

.what-rasti-stat,
.what-rasti-mini-card {
    padding: 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.what-rasti-stat {
    gap: 0.22rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.98));
}

.what-rasti-stat-value {
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 2.05rem;
    line-height: 1;
}

.what-rasti-stat-label,
.what-rasti-mini-kicker,
.what-rasti-image-note {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.what-rasti-mini-card {
    gap: 0.45rem;
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
    border-color: rgba(242, 158, 120, 0.34);
}

.what-rasti-mini-kicker {
    color: #d97706;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.what-rasti-mini-copy {
    margin: 0;
    color: var(--gray-900);
    line-height: 1.62;
    font-weight: 600;
}

.what-rasti-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 0.1rem;
}

.what-rasti-hero-visual-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 0.9rem;
    background: #fffdf9;
    border: 1px solid rgba(31, 42, 68, 0.08);
    box-shadow: 0 16px 34px rgba(189, 61, 117, 0.08);
}

.what-rasti-hero-image {
    width: 100%;
    height: min(68vh, 580px);
    object-fit: cover;
    display: block;
    border-radius: 22px;
}

.what-rasti-image-caption {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 20px rgba(20, 23, 38, 0.08);
}

.what-rasti-image-tag {
    color: var(--primary);
    font-weight: 700;
}

.what-rasti-section-head {
    max-width: 760px;
    margin: 0 0 1.75rem;
}

.what-rasti-section-head > * + * {
    margin-top: 1rem;
}

.what-rasti-points-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.what-rasti-point-card,
.what-rasti-format-card,
.what-rasti-type-card {
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.45rem 1.5rem;
}

.what-rasti-point-card::before,
.what-rasti-format-card::before,
.what-rasti-type-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.what-rasti-point-card:nth-child(1) {
    background: linear-gradient(180deg, #f7fffd 0%, #ffffff 100%);
}

.what-rasti-point-card:nth-child(1)::before { background: #298982; }

.what-rasti-point-card:nth-child(2) {
    background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
}

.what-rasti-point-card:nth-child(2)::before { background: #bd3d75; }

.what-rasti-point-card:nth-child(3) {
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.what-rasti-point-card:nth-child(3)::before { background: #f29e78; }

.what-rasti-formats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.what-rasti-format-card:nth-child(1) {
    background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
}

.what-rasti-format-card:nth-child(1)::before { background: #bd3d75; }

.what-rasti-format-card:nth-child(2) {
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.what-rasti-format-card:nth-child(2)::before { background: #f29e78; }

.what-rasti-point-title,
.what-rasti-format-title,
.what-rasti-type-title {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.1rem;
    font-weight: 700;
}

.what-rasti-point-text,
.what-rasti-format-text,
.what-rasti-type-text,
.what-rasti-type-example,
.what-rasti-enterprise-list li {
    margin: 0.58rem 0 0;
    color: var(--gray-700);
    line-height: 1.72;
}

.what-rasti-types-section {
    background: linear-gradient(180deg, #fffdf9 0%, #fff7fb 100%);
}

.what-rasti-types-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.what-rasti-type-card:nth-child(1)::before { background: #298982; }
.what-rasti-type-card:nth-child(2)::before { background: #ffde59; }
.what-rasti-type-card:nth-child(3)::before { background: #bd3d75; }
.what-rasti-type-card:nth-child(4)::before { background: #f29e78; }
.what-rasti-type-card:nth-child(5)::before { background: #1f529e; }

.what-rasti-type-card:nth-child(odd) {
    transform: translateY(-4px);
}

.what-rasti-type-example {
    padding-top: 0.72rem;
    border-top: 1px solid rgba(31, 42, 68, 0.08);
    color: var(--gray-600);
    font-size: 0.94rem;
    font-style: italic;
}

.what-rasti-enterprise-list {
    margin: 0;
    padding-left: 1.12rem;
}

.what-rasti-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 0.9rem;
    align-self: start;
}

.what-rasti-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(20, 23, 38, 0.08);
    border: 1px solid rgba(31, 42, 68, 0.08);
}

.what-rasti-gallery-image:first-child {
    grid-row: span 2;
}

.what-rasti-gallery-image:nth-child(2) {
    transform: translateY(14px);
}

.what-rasti-gallery-image:last-child {
    grid-column: span 2;
}

.what-rasti-faq-section {
    padding-bottom: 4.75rem;
}

.what-rasti-faq-wrap .faq {
    padding: 0;
    background: transparent;
}

@media (max-width: 1100px) {
    .what-rasti-hero-grid,
    .what-rasti-enterprise-grid,
    .what-rasti-points-grid,
    .what-rasti-formats-grid,
    .what-rasti-types-grid {
        grid-template-columns: 1fr;
    }

    .what-rasti-title,
    .what-rasti-section-kicker,
    .what-rasti-section-title,
    .what-rasti-lead,
    .what-rasti-section-copy {
        max-width: none;
    }

    .what-rasti-hero-visual,
    .what-rasti-gallery {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    .what-rasti-type-card:nth-child(odd),
    .what-rasti-gallery-image:nth-child(2) {
        transform: none;
    }

    .what-rasti-gallery-image:first-child,
    .what-rasti-gallery-image:last-child {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .what-rasti-section {
        padding: 2.55rem 0;
    }

    .what-rasti-hero-section {
        padding-top: calc(var(--navbar-height, 72px) + 7.5rem + env(safe-area-inset-top));
    }

    .what-rasti-title {
        font-size: 2.55rem;
        max-width: 8.4ch;
    }

    .what-rasti-section-kicker {
        font-size: 2.1rem;
        max-width: 18ch;
    }

    .what-rasti-section-title {
        font-size: 0.98rem;
        max-width: none;
    }

    .what-rasti-lead,
    .what-rasti-section-copy,
    .what-rasti-point-text,
    .what-rasti-format-text,
    .what-rasti-type-text,
    .what-rasti-type-example,
    .what-rasti-enterprise-list li,
    .what-rasti-pull-text {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .what-rasti-hero-meta {
        grid-template-columns: 1fr;
    }

    .what-rasti-hero-image {
        height: 380px;
    }

    .what-rasti-gallery {
        grid-auto-rows: 145px;
    }
}

@media (max-width: 560px) {
    .what-rasti-title {
        font-size: 2.2rem;
        max-width: 8.8ch;
    }

    .what-rasti-section-kicker {
        font-size: 1.82rem;
        max-width: 16ch;
    }

    .what-rasti-section-title {
        font-size: 0.98rem;
        max-width: none;
    }

    .what-rasti-actions {
        flex-direction: column;
    }

    .what-rasti-actions .btn-primary,
    .what-rasti-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .what-rasti-hero-image {
        height: 300px;
    }

    .what-rasti-pull-quote,
    .what-rasti-enterprise-copy {
        border-radius: 18px;
    }

    .what-rasti-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .what-rasti-gallery-image {
        aspect-ratio: 1 / 1;
    }
}
