.company-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 3.25rem 0 4.75rem;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(5, 21, 43, 0.98) 0%, rgba(11, 36, 71, 0.91) 40%, rgba(11, 36, 71, 0.56) 64%, rgba(11, 36, 71, 0.2) 100%),
        url('../img/hero-empresa-collage.jpg') center center / cover no-repeat;
}

.company-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 207, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 207, 255, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
    pointer-events: none;
}

.company-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent) 0 30%, var(--color-cyan) 30% 44%, transparent 44%);
}

.company-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-copy {
    max-width: 780px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--color-cyan);
    text-decoration: none;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-cyan);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-eyebrow::before,
.section-eyebrow::before {
    content: '';
    width: 34px;
    height: 3px;
    background: var(--color-accent);
}

.company-hero h1 {
    max-width: 760px;
    margin: 0.9rem 0 1.15rem;
    font-size: clamp(2.75rem, 3.7vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.company-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.03rem, 1.6vw, 1.22rem);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 1.6rem;
}

.hero-actions .btn-outline {
    border-radius: 999px;
}

.company-intro {
    background:
        radial-gradient(circle at 95% 10%, rgba(77, 207, 255, 0.1), transparent 28%),
        var(--bg-page);
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.section-title {
    max-width: 700px;
    margin: 0.7rem 0 1.2rem;
    color: var(--color-primary);
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
}

.lead {
    color: var(--color-text-soft);
    font-size: 1.14rem;
    line-height: 1.75;
}

.history-copy p + p {
    margin-top: 1rem;
}

.summary-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.summary-link i {
    color: var(--color-accent);
    transition: transform 0.25s ease;
}

.summary-link:hover i {
    transform: translateX(5px);
}

.purpose-stack {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(77, 207, 255, 0.2);
    box-shadow: 0 28px 65px -42px rgba(11, 36, 71, 0.85);
}

.purpose-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.4rem;
    padding: 2rem;
    color: #ffffff;
    background: var(--color-primary);
}

.purpose-icon {
    margin-top: 0.25rem;
    color: var(--color-cyan);
    font-size: 1.65rem;
}

.purpose-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.7rem;
    text-transform: uppercase;
}

.purpose-card p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.98rem;
    line-height: 1.65;
}

.operation-section {
    background: #ffffff;
}

.operation-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 780px);
    align-items: center;
    justify-content: center;
    gap: clamp(3rem, 5vw, 5rem);
}

.operation-copy p {
    max-width: 560px;
    color: var(--color-text-soft);
    font-size: 1.06rem;
}

.map-count {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 1.7rem;
    color: var(--color-primary) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.map-count strong {
    color: var(--color-accent);
    font-size: 3.2rem;
    line-height: 1;
}

.map-scope {
    margin-top: 0.65rem;
    color: var(--color-gray-soft) !important;
    font-size: 0.9rem !important;
}

.operations-map-shell {
    overflow: hidden;
    background: var(--color-primary);
    border: 1px solid rgba(11, 36, 71, 0.18);
    box-shadow: 0 30px 70px -40px rgba(11, 36, 71, 0.8);
}

.operations-map {
    height: 500px;
    width: 100%;
    background: #071c35;
}

.map-loading {
    display: grid;
    height: 100%;
    place-items: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.map-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.map-caption i {
    margin-right: 0.35rem;
    color: var(--color-cyan);
}

.operation-marker-shell {
    background: transparent;
    border: 0;
}

.operation-marker-dot {
    display: block;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(4, 17, 35, 0.65);
}

.operations-map .leaflet-popup-content-wrapper {
    color: var(--color-text-dark);
    border-radius: 4px;
}

.operations-map .leaflet-popup-content {
    min-width: 220px;
    margin: 1rem 1.1rem;
    line-height: 1.45;
}

.map-popup-title {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    text-transform: uppercase;
}

.map-popup-projects {
    margin: 0;
    padding-left: 1.05rem;
    color: var(--color-text-soft);
    font-size: 0.82rem;
}

.map-popup-projects li + li {
    margin-top: 0.28rem;
}

.operations-map .leaflet-control-attribution {
    font-size: 0.63rem;
}

.company-cta {
    padding: 3.7rem 0;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(11, 36, 71, 0.98), rgba(11, 36, 71, 0.82)),
        url('../img/hero-radioayudas.png') center / cover no-repeat;
}

.cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.company-cta h2 {
    max-width: 720px;
    font-size: clamp(2.1rem, 3.5vw, 3.5rem);
    line-height: 1;
}

.company-cta p {
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
}

footer {
    padding: 2.8rem 0 1.35rem;
    font-size: 0.95rem;
}

footer .footer-grid {
    gap: 2.5rem;
    margin-bottom: 1.8rem;
}

footer .footer-col h4 {
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
}

footer .footer-col ul li {
    margin-bottom: 0.65rem;
}

footer .footer-logo-img {
    margin-bottom: 1rem;
}

footer .footer-bottom {
    padding-top: 1.2rem;
    font-size: 0.85rem;
}

.navbar {
    background: rgba(11, 36, 71, 0.98);
    border-bottom: 1px solid rgba(77, 207, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.nav-links {
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

.nav-links a:hover {
    color: var(--color-cyan);
    text-shadow: none;
}

.menu-toggle {
    color: #ffffff;
}

.dropdown-menu {
    min-width: 220px;
    padding: 1rem 0;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

.dropdown-menu a {
    color: var(--color-text-soft);
    border-bottom: 0;
}

.dropdown-menu a:hover {
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.06);
}

.lang-switch {
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-switch span {
    color: rgba(255, 255, 255, 0.3);
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.65);
}

.nav-links a[aria-current='page'],
.lang-switch a.active {
    color: var(--color-cyan);
}

@media (max-width: 1024px) {
    .summary-grid,
    .operation-grid {
        grid-template-columns: 1fr;
    }

    .purpose-stack,
    .operation-copy {
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        background: rgba(11, 36, 71, 0.99);
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .nav-links li {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .nav-links a:hover {
        color: var(--color-cyan) !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu {
        background: rgba(0, 0, 0, 0.18);
    }

    .company-hero {
        min-height: 0;
        padding: 2.8rem 0 4rem;
        background-position: 66% center;
    }

    .company-hero h1 {
        font-size: clamp(2.55rem, 10.5vw, 3.4rem);
    }

    .summary-grid,
    .operation-grid {
        gap: 2.4rem;
    }

    .purpose-card {
        padding: 1.6rem;
    }

    .operations-map {
        height: 440px;
    }

    .map-caption {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .cta-layout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .summary-link i {
        transition: none;
    }
}
