/**
 * Investor Relations - Hero Section
 * =============================================================================
 * Custom styles for /inversionistas.php (ES + EN)
 *
 * Design:
 *   - Slate base from client brand (#3E4B5D) with 82% opacity for legibility
 *   - iOS-style rounded corners (22px) and uniform 1px borders
 *   - Typography homologated with site (Red Hat Display, weight 600)
 *   - Accent color #A0C4DA (existing site accent)
 *
 * Scope:
 *   - All styles namespaced under .ir-hero
 *   - HTML uses <div> (not <header>) to avoid conflicts with global .sticky rules
 *
 * Author:   Templates Rocket
 * Version:  1.0 final
 * =============================================================================
 */

/* ============================================================================
   1. VARIABLES (local to section)
   ============================================================================ */

.ir-hero {
    --ir-slate:        #3E4B5D;
    --ir-slate-dark:   #2F3A48;
    --ir-accent:       #A0C4DA;
    --ir-white:        #FFFFFF;
    --ir-text:         #FFFFFF;
    --ir-text-soft:    rgba(255, 255, 255, 0.88);
    --ir-text-dim:     rgba(255, 255, 255, 0.65);

    --ir-card-bg:      linear-gradient(135deg,
                           rgba(47, 58, 72, 0.82) 0%,
                           rgba(62, 75, 93, 0.78) 100%);
    --ir-card-border:  1px solid rgba(255, 255, 255, 0.12);
    --ir-card-radius:  22px;
    --ir-card-shadow:  0 20px 50px rgba(0, 0, 0, 0.30);

    --ir-btn-bg:       rgba(255, 255, 255, 0.06);
    --ir-btn-border:   1px solid rgba(255, 255, 255, 0.12);
    --ir-btn-radius:   12px;

    --ir-font: 'Red Hat Display', -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============================================================================
   2. CONTAINER & LAYOUT
   ============================================================================ */

#search_container {
    position: relative;
    padding: 0;
}

#search-investors {
    padding: 80px 0 80px;
}

.ir-hero {
    font-family: var(--ir-font);
    color: var(--ir-text);
}

/* ============================================================================
   3. TITLE BLOCK
   ============================================================================ */

.ir-hero__title-block {
    padding: 24px 0 24px 8px;
}

.ir-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ir-white);
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    margin-bottom: 22px;
    background: rgba(47, 58, 72, 0.70);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.ir-hero__title {
    font-family: var(--ir-font);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ir-white);
    margin: 0 0 18px 0;
    padding: 0;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.55),
        0 4px 40px rgba(0, 0, 0, 0.35);
}

.ir-hero__subtitle {
    font-family: var(--ir-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ir-white);
    max-width: 400px;
    margin: 0;
    text-shadow:
        0 1px 10px rgba(0, 0, 0, 0.65),
        0 2px 20px rgba(0, 0, 0, 0.45);
}

.ir-hero__ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 10px 16px;
    background: rgba(47, 58, 72, 0.70);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ir-white);
}

.ir-hero__ticker-badge .ir-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

/* ============================================================================
   4. GLASS CARDS
   ============================================================================ */

.ir-card {
    position: relative;
    background: var(--ir-card-bg);
    border: var(--ir-card-border);
    border-radius: var(--ir-card-radius);
    padding: 28px 26px;
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    box-shadow: var(--ir-card-shadow);
    color: var(--ir-text);
    font-family: var(--ir-font);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ir-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

/* ============================================================================
   5. EVENT CARD
   ============================================================================ */

.ir-event__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ir-event__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(160, 196, 218, 0.18);
    border: 1px solid rgba(160, 196, 218, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ir-event__icon .fa {
    font-size: 20px;
    color: var(--ir-accent);
}

.ir-event__meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.ir-event__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ir-accent);
    line-height: 1;
    margin: 0;
    padding: 0;
}

.ir-event__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ir-white);
    margin: 0;
    padding: 0;
}

.ir-event__datetime {
    font-size: 15px;
    font-weight: 500;
    color: var(--ir-white);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.ir-event__section {
    margin-bottom: 20px;
}

.ir-event__section:last-child {
    margin-bottom: 0;
}

.ir-event__section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ir-accent);
    margin: 0 0 10px 0;
}

.ir-event__section-label .fa {
    font-size: 12px;
}

.ir-event__webcast-link {
    display: inline-block;
    font-size: 14px;
    color: var(--ir-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    word-break: break-all;
    line-height: 1.5;
    transition: text-decoration-color 0.2s ease;
}

.ir-event__webcast-link:hover {
    color: var(--ir-white);
    text-decoration-color: var(--ir-white);
}

.ir-event__phones {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.ir-event__phones li {
    color: var(--ir-white);
}

.ir-event__phones strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    display: inline-block;
    min-width: 115px;
}

.ir-event__phones a {
    color: var(--ir-white);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease;
}

.ir-event__phones a:hover {
    border-bottom-color: var(--ir-white);
}

.ir-event__webinar-id {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    color: var(--ir-white);
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

/* ============================================================================
   6. DOWNLOADS CARD
   ============================================================================ */

.ir-downloads__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ir-downloads__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ir-white);
    margin: 0;
    padding: 0;
}

.ir-downloads__count {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

.ir-downloads__group {
    margin-bottom: 22px;
}

.ir-downloads__group:last-child {
    margin-bottom: 0;
}

.ir-downloads__group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ir-accent);
    margin: 0 0 10px 0;
    padding-left: 2px;
}

.ir-downloads__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ir-downloads__item {
    margin-bottom: 6px;
}

.ir-downloads__item:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   7. DOWNLOAD BUTTONS
   ============================================================================ */

.ir-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--ir-btn-bg);
    border: var(--ir-btn-border);
    border-radius: var(--ir-btn-radius);
    color: var(--ir-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease;
}

.ir-download:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--ir-white);
    text-decoration: none;
    transform: translateX(2px);
}

.ir-download:focus-visible {
    outline: 2px solid var(--ir-accent);
    outline-offset: 2px;
}

.ir-download--highlight {
    background: rgba(160, 196, 218, 0.14);
    border: 1px solid rgba(160, 196, 218, 0.30);
}

.ir-download__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ir-download__icon .fa {
    font-size: 11px;
    color: var(--ir-white);
}

.ir-download__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ir-download__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ir-slate-dark);
    padding: 3px 8px;
    background: var(--ir-accent);
    border-radius: 4px;
    flex-shrink: 0;
}

/* ============================================================================
   8. RESPONSIVE
   ============================================================================ */

@media (max-width: 991px) {
    #search-investors {
        padding: 120px 0 56px;
    }

    .ir-hero__title {
        font-size: 40px;
    }

    .ir-hero__title-block {
        padding: 16px 0 28px 0;
    }

    .ir-card {
        margin-bottom: 18px;
    }

    .ir-card:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .ir-hero__title {
        font-size: 32px;
    }

    .ir-card {
        padding: 22px 20px;
    }

    .ir-event__phones strong {
        display: block;
        min-width: auto;
        margin-bottom: 2px;
    }
}

/* ============================================================================
   9. FALLBACK (browsers without backdrop-filter)
   ============================================================================ */

@supports not ((backdrop-filter: blur(1px)) or
               (-webkit-backdrop-filter: blur(1px))) {
    .ir-card {
        background: rgba(47, 58, 72, 0.95);
    }
    .ir-hero__eyebrow,
    .ir-hero__ticker-badge {
        background: rgba(47, 58, 72, 0.95);
    }
}

/* ============================================================================
   MAX-WIDTH 1440px - Centrar contenido como en el header
   ============================================================================ */
.ir-hero .container-fluid {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (max-width: 1440px) {
    .ir-hero .container-fluid {
        max-width: 100% !important;
    }
}


/* ============================================================================
   BMV TICKER CUSTOM (Stooq) - Reemplaza TradingView
   ============================================================================ */
.bmv-ticker {
    margin-top: 24px;
    width: fit-content;
    min-width: 220px;
    padding: 16px 20px;
    background: var(--ir-card-bg);
    border: var(--ir-card-border);
    border-radius: var(--ir-card-radius);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    box-shadow: var(--ir-card-shadow);
    color: var(--ir-text);
    font-family: var(--ir-font);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bmv-ticker:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.bmv-ticker__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.bmv-ticker__exchange {
    font-size: 11px;
    font-weight: 600;
    color: var(--ir-text-dim);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.bmv-ticker__symbol {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.bmv-ticker__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.bmv-ticker__price {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}
.bmv-ticker__currency {
    font-size: 12px;
    color: var(--ir-text-dim);
    font-weight: 500;
}
.bmv-ticker__change-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}
.bmv-ticker--up .bmv-ticker__change,
.bmv-ticker--up .bmv-ticker__change-pct {
    color: #4ADE80;
}
.bmv-ticker--down .bmv-ticker__change,
.bmv-ticker--down .bmv-ticker__change-pct {
    color: #F87171;
}
.bmv-ticker__meta {
    font-size: 11px;
    color: var(--ir-text-dim);
    letter-spacing: 0.02em;
}
@media (max-width: 767px) {
    .bmv-ticker { width: 100%; min-width: 0; }
}

/* ============================================================================
   BMV TICKER ICON (gráfica de barras sutil)
   ============================================================================ */
.bmv-ticker__exchange {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.bmv-ticker__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}
