/**
 * WebNova Institutional Hero
 */

.webnova-institutional-hero {
    position: relative;
    padding-top: var(--wp--preset--spacing--xxl);
    padding-bottom: var(--wp--preset--spacing--xxl);
}

.webnova-institutional-hero__eyebrow {
    margin-bottom: var(--wp--preset--spacing--sm);
    letter-spacing: 0.05em;
}

.webnova-institutional-hero__title {
    margin-bottom: var(--wp--preset--spacing--md);
    line-height: 1.1;
}

.webnova-institutional-hero__description {
    margin-bottom: var(--wp--preset--spacing--lg);
    max-width: 600px;
}

.webnova-institutional-hero__actions {
    margin-bottom: var(--wp--preset--spacing--xl);
    gap: var(--wp--preset--spacing--sm);
}

.webnova-institutional-hero__trust-elements {
    margin-bottom: var(--wp--preset--spacing--md);
    border-top: 1px solid var(--wp--preset--color--border);
    padding-top: var(--wp--preset--spacing--md);
}

.webnova-institutional-hero__metrics {
    gap: var(--wp--preset--spacing--md);
}

.webnova-institutional-hero__metric {
    display: flex;
    flex-direction: column;
}

.webnova-institutional-hero__metric h4 {
    margin: 0 0 4px 0;
}

.webnova-institutional-hero__metric p {
    margin: 0;
    color: var(--wp--preset--color--text-muted);
}

/* Button Outline variants */
.wp-block-button.webnova-btn-outline-primary .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--primary);
    transition: all 0.3s ease;
}

.wp-block-button.webnova-btn-outline-primary .wp-block-button__link:hover,
.wp-block-button.webnova-btn-outline-primary .wp-block-button__link:focus {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--background);
}

.wp-block-button.webnova-btn-outline-white .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--background);
    border: 2px solid var(--wp--preset--color--background);
    transition: all 0.3s ease;
}

.wp-block-button.webnova-btn-outline-white .wp-block-button__link:hover,
.wp-block-button.webnova-btn-outline-white .wp-block-button__link:focus {
    background: var(--wp--preset--color--background);
    color: var(--wp--preset--color--primary-dark);
}

/* Cover variant specific */
.webnova-institutional-hero--cover .webnova-institutional-hero__description {
    color: rgba(255, 255, 255, 0.9);
}

/* Image styling */
.webnova-institutional-hero__media {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .webnova-institutional-hero--split .webnova-institutional-hero__columns {
        flex-direction: column-reverse;
    }
    
    .webnova-institutional-hero {
        padding-top: var(--wp--preset--spacing--xl);
        padding-bottom: var(--wp--preset--spacing--xl);
    }
}

/* Headings destacados (Highlighted words) */
.webnova-institutional-hero__title mark {
    background: transparent;
    position: relative;
    display: inline-block;
    color: var(--wp--preset--color--accent);
}

.webnova-institutional-hero__title mark::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -2%;
    width: 104%;
    height: 0.25em;
    background-color: currentColor;
    opacity: 0.25;
    z-index: -1;
    border-radius: 2px;
    transform: rotate(-1.5deg);
}

/* Header transparente compatibilidad */
.webnova-institutional-hero.has-transparent-header {
    padding-top: calc(var(--wp--preset--spacing--xxl) + var(--webnova-header-height, 90px));
}

@media (max-width: 1024px) {
    .webnova-institutional-hero.has-transparent-header {
        padding-top: calc(var(--wp--preset--spacing--xl) + var(--webnova-header-height, 76px));
    }
}

/* Cover and Video minimum height */
.webnova-institutional-hero--cover,
.webnova-institutional-hero--video {
    min-height: max(550px, 80vh);
    min-height: max(550px, 80dvh);
}

/* Minimal Hero variant */
.webnova-institutional-hero--minimal {
    background-color: var(--wp--preset--color--surface);
    position: relative;
    overflow: hidden;
}

.webnova-institutional-hero--minimal::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--wp--preset--color--primary) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    pointer-events: none;
}

.webnova-institutional-hero--minimal::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--wp--preset--color--accent) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    pointer-events: none;
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .webnova-institutional-hero--video .wp-block-cover__video-background {
        display: none !important;
    }
}
