/* Encabezados de página — estructura común, color desde page-themes.css */

.page-hero,
body.modern-ui.catalog-page .page-hero,
body.modern-ui.page-catalog .page-hero,
body.modern-ui.page-services .services-section > .page-hero,
body.modern-ui.page-contact .contact-section > .page-hero,
body.modern-ui.page-checkout .checkout-section > .page-hero,
body.modern-ui.page-orders .orders-section > .page-hero {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 1.75rem 1.85rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(12, 18, 32, 0.86) 100%);
    border: 1px solid var(--page-accent-border, rgba(148, 163, 184, 0.14));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-hero__glow {
    position: absolute;
    pointer-events: none;
}

.page-hero__glow--tr {
    top: -45%;
    right: -10%;
    width: min(340px, 58vw);
    height: 240px;
    background: radial-gradient(circle, var(--page-glow) 0%, transparent 68%);
}

.page-hero__glow--bl {
    bottom: -55%;
    left: -12%;
    width: min(280px, 50vw);
    height: 200px;
    background: radial-gradient(circle, color-mix(in srgb, var(--page-accent-2) 18%, transparent) 0%, transparent 70%);
    opacity: 0.7;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.page-hero__main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    flex: 1 1 260px;
}

.page-hero__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: var(--page-accent);
    background: linear-gradient(145deg, var(--page-accent-soft), transparent);
    border: 1px solid var(--page-accent-border);
    box-shadow: 0 8px 24px var(--page-glow);
}

.page-hero__icon svg {
    width: 26px;
    height: 26px;
}

.page-hero__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--page-accent);
    background: var(--page-accent-soft);
    border: 1px solid var(--page-accent-border);
    border-radius: 999px;
}

.page-hero__title {
    margin: 0 0 8px;
    font-family: var(--mx-display, 'Poppins', sans-serif);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    background: var(--page-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero__lead {
    margin: 0;
    max-width: 34rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #94a3b8;
}

.page-hero__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--page-accent-border);
    white-space: nowrap;
}

.page-hero__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--page-accent);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-hero__link:hover {
    color: color-mix(in srgb, var(--page-accent) 75%, white);
    transform: translateX(-2px);
}

/* Variantes de forma */
.page-hero--catalog {
    border-radius: 22px 22px 8px 22px;
}

.page-hero--services {
    border-radius: 22px 8px 22px 22px;
}

.page-hero--contact {
    border-radius: 8px 22px 22px 22px;
}

.page-hero--checkout {
    border-left: 3px solid var(--page-accent);
    border-radius: 4px 22px 22px 4px;
}

.page-hero--orders {
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.55) 0%, rgba(12, 18, 32, 0.88) 100%);
}

@media (max-width: 640px) {
    .page-hero {
        padding: 1.35rem 1.25rem;
    }

    .page-hero__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero__meta {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-hero__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .page-hero__icon svg {
        width: 22px;
        height: 22px;
    }
}
