* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-oscuro: #1e3a8a;
    --rojo: #ea2d0c;
    --gris-claro: #f3f4f6;
    --texto-dark: #1f2937;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--texto-dark);
    background: #ffffff;
}

/* Header y Navegación */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 135;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    white-space: nowrap;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-oscuro);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--rojo);
}

/* Language Selector Group */
.lang-selector-group {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.nav-links .lang-selector-group {
    display: none;
}

.lang-selector-desktop {
    display: flex;
}

.lang-selector {
    background: transparent;
    color: var(--azul-oscuro);
    border: 2px solid var(--azul-oscuro);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    min-width: 45px;
}

.lang-selector:hover,
.lang-selector.active {
    background: var(--azul-oscuro);
    color: white;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 135;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--azul-oscuro);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in-out, visibility 0.25s;
    z-index: 120;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    min-height: 70vh;
    padding: 0;
}

.construction-container {
    text-align: center;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, #2563eb 100%);
    padding: 6rem 3rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.construction-container .construction-icon {
    color: white;
    font-size: 5rem;
    margin-bottom: 1rem;
}

.construction-container h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.construction-container p {
    color: #ddd;
    font-size: 1.2rem;
}

/* Hero Section con Video */
.inicio-hero {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.hero-text-container {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-text-container.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem 3rem;
    max-width: 800px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    animation: glassAppear 1s ease-out forwards;
}

@keyframes glassAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text-content h1 {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-text-content p {
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

#hero-paragraph {
    color: rgba(255, 255, 255, 0.95);
}

.audio-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.audio-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.about-instrelec h2 {
    color: var(--azul-oscuro);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-instrelec p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--azul-oscuro);
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--azul-oscuro);
    transition: opacity 0.2s;
}

.btn-link:hover {
    opacity: 0.8;
}

.our-services {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.our-services h3 {
    color: var(--texto-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.our-services ul {
    list-style-type: none;
    padding-left: 0;
}

.our-services li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.our-services li::before {
    content: '•';
    color: var(--azul-oscuro);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* ORC Section */
.orc-section {
    background: var(--gris-claro);
    padding: 4rem 5% 6rem;
    text-align: center;
}

.orc-header {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.orange-bar {
    width: 60px;
    height: 6px;
    background: var(--rojo);
    margin: 0 auto 1.5rem;
}

.orc-header h2 {
    color: var(--azul-oscuro);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.orc-header p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4b5563;
}

.orc-grid {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.orc-card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.orc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    padding: 15px;
    background: white;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.orc-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem 1.2rem 0;
}

.card-content h3 {
    color: var(--rojo);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card-content p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.card-content p strong {
    font-weight: 700;
}

.orc-footer {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-orc {
    background: var(--azul-oscuro);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(234, 45, 12, 0.3);
}

.btn-orc:hover {
    background: #102a78;
}

/* SECCIÓN PROYECTOS */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    justify-content: center;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ea2d0c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.placeholder-image {
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::after {
    content: '⚡';
    font-size: 3rem;
    opacity: 0.5;
}

.project-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    color: var(--azul-oscuro);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.client-text {
    color: #6b7280;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-desc {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: auto;
}

/* Services Section */
.services-section {
    background: #fdfdfd;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

#servicios-integrales-title {
    color: var(--azul-oscuro);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--rojo);
}

.service-icon img {
    width: 100%;
    height: 258px;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .service-icon img {
        width: 100%;
        height: auto;
    }
}

.service-card h3 {
    color: var(--azul-oscuro);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Footer */
footer {
    background: #000;
    color: var(--gris-claro);
    padding: 1.8rem 5%;
    border-top: 1px solid #e6e6e6;
    font-weight: bold;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-left {
    width: 300px;
}

.gmk-box {
    border: 1px solid #ddd;
    padding: 0.9rem;
    background: #fafafa;
    border-radius: 6px;
}

.gmk-box img {
    display: block;
    max-width: 130px;
    margin-bottom: 0.4rem;
}

.gmk-logo {
    max-width: 100px !important;
}

.gmk-box p {
    font-size: 0.9rem;
    color: #111827;
    margin: 0.2rem 0;
}

.gmk-box a {
    color: var(--azul-oscuro);
    text-decoration: none;
}

.footer-right {
    flex: 1;
}

.footer-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.offices-grid {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.offices-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.office {
    padding: 0;
}

.office h3 {
    font-size: 0.95rem;
    margin: 0 0 0.08rem;
    font-weight: 700;
}

.office h4 {
    font-size: 0.9rem;
    margin: 0 0 0.06rem;
    font-weight: 600;
    color: #ffffff;
}

.office p {
    margin: 0.04rem 0;
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.08;
}

.contacts {
    margin-top: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacts p {
    margin: 0.15rem 0;
}

.contacts a {
    color: var(--azul-oscuro);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.copyright {
    margin-top: 10px;
}

.footer-sep {
    height: 1px;
    background: #eee;
    margin: 0.6rem 0;
}

/* MODAL ORC */
.orc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.orc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.modal-open {
    overflow: hidden;
}

.orc-modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.orc-modal-overlay.active .orc-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #f3f4f6;
    color: var(--rojo);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header h2 {
    color: var(--azul-oscuro);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.modal-tabs {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2.5rem 0;
    border-bottom: 2px solid #e5e7eb;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.modal-tab-btn:hover {
    color: var(--azul-oscuro);
    background: #f9fafb;
}

.modal-tab-btn.active {
    color: var(--rojo);
    border-bottom-color: var(--rojo);
    background: #fef2f2;
}

.modal-content {
    padding: 2rem 2.5rem;
}

.modal-tab-content {
    display: none;
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-tab-content.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-content h3 {
    color: var(--azul-oscuro);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.modal-content h4 {
    color: var(--rojo);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
}

.modal-content p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
}

.modal-content li {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
    margin: 0.5rem 0;
}

.modal-content li::before {
    content: '•';
    color: var(--rojo);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.modal-content strong {
    font-weight: 700;
    color: var(--azul-oscuro);
}

.modal-highlight-box {
    background: #f9fafb;
    border-left: 4px solid var(--rojo);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
}

.modal-highlight-box h4 {
    margin-top: 0;
}

.modal-toggle-btn {
    display: none;
}

/* TIMELINE SECTION */
.timeline-section {
            padding: 60px 0;
            background-color: #fff;
        }

        .timeline-main-title {
            text-align: center;
            margin-bottom: 40px;
            font-size: 32px;
            color: var(var(--gris-claro));
            font-weight: 600;
        }

        .titulo-cuadro-r2 {
            font-family: Arial, sans-serif;
            font-weight: 600;
            font-size: 32px;
            color: #fff;
            border-radius: 15px;
            margin: 0 auto;
            margin-bottom: 40px;
            width: 620px;
            text-align: center;
            background: var(--azul-oscuro);
            padding: 15px;
        }

        .timeline ul {
            padding: 50px 0;
            position: relative;
        }

        .timeline ul::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 5px;
            background: var(--azul-oscuro);
            transform: translateX(-50%);
        }

        .timeline ul li {
            list-style-type: none;
            position: relative;
            width: 50%;
            margin-bottom: 50px;
            padding: 0 40px;
        }

        .timeline ul li:nth-child(odd) {
            left: 0;
            text-align: right;
        }

        .timeline ul li:nth-child(even) {
            left: 50%;
            text-align: left;
        }

        .timeline ul li>div {
            position: relative;
            display: inline-block;
            vertical-align: middle;
            width: 100%;
            max-width: 500px;
            z-index: 2;
            padding: 20px;
            border-radius: 10px;
            color: #ffffff;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .timeline-year {
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 10px;
            color: var(--gris-claro);
        }

        .timeline-content p {
            margin: 0;
            color: white;
            font-size: 16px;
            line-height: 1.6;
        }

        .timeline ul li:nth-child(3n+1) div {
            background: var(--azul-oscuro);
        }

        .timeline ul li:nth-child(3n+2) div {
            background: var(--azul-oscuro);
        }

        .timeline ul li:nth-child(3n+3) div {
            background: var(--azul-oscuro);
        }

        .timeline ul li::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: var(--gris-claro);
            border-radius: 50%;
            top: 0;
            z-index: 3;
        }

        .timeline ul li:nth-child(odd)::after {
            right: -10px;
        }

        .timeline ul li:nth-child(even)::after {
            left: -10px;
        }

        .timeline ul li div {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease-in-out;
        }

        .timeline ul li.in-view div {
            opacity: 1;
            transform: translateY(0);
        }

        @media screen and (max-width: 900px) {
            .titulo-cuadro-r2 {
                font-size: 24px;
                width: 504px;
            }

            .timeline ul li {
                width: 100%;
                left: 0 !important;
                text-align: left !important;
                padding-left: 70px;
                padding-right: 20px;
            }

            .timeline ul::before {
                left: 30px;
            }

            .timeline ul li::after {
                left: 20px !important;
            }
        }

        @media screen and (max-width: 600px) {
            .titulo-cuadro-r2 {
                font-size: 19px;
                width: 336px;
            }

            .timeline ul li {
                padding-left: 50px;
            }

            .timeline ul::before {
                left: 20px;
            }

            .timeline ul li::after {
                left: 10px !important;
                width: 15px;
                height: 15px;
            }
        }

/* SECCIÓN LÍDER EN */
        /* SECCIÓN LÍDER */
        .lider-section {
            padding: 80px 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }

        .lider-main-title {
            text-align: center;
            margin-bottom: 60px;
            font-size: 36px;
            color: #2c3e50;
            font-weight: 700;
            position: relative;
            padding-bottom: 15px;
        }

        .lider-main-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: #ad123c;
            border-radius: 2px;
        }

        /* GRID 2x2 PERFECTO */
        .lider-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }

        /* TARJETAS UNIFORMES */
        .lider-card {
            background: white;
            border-radius: 12px;
            padding: 35px 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border-left: 5px solid #ad123c;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 280px;
        }

        .lider-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .lider-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
        }

        /* COLORES DIFERENCIADOS PARA CADA TARJETA */
        .lider-card:nth-child(1) {
            border-left-color: var(--azul-oscuro);
        }
        .lider-card:nth-child(1)::before {
            background: var(--gris-claro);
        }

        .lider-card:nth-child(2) {
            border-left-color: var(--azul-oscuro);
        }
        .lider-card:nth-child(2)::before {
            background: var(--gris-claro);
        }

        .lider-card:nth-child(3) {
            border-left-color: var(--azul-oscuro);
        }
        .lider-card:nth-child(3)::before {
            background: var(--gris-claro);
        }

        .lider-card:nth-child(4) {
            border-left-color: #2c3e50;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
        }
        .lider-card:nth-child(4)::before {
            background: var(--azul-oscuro);
        }

        .lider-card h3 {
            font-size: 22px;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .lider-card:nth-child(4) h3 {
            color: white;
        }

        .lider-card:nth-child(-n+3) h3 {
            color: #2c3e50;
        }

        .lider-card p {
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .lider-card:nth-child(-n+3) p {
            color: #555;
        }

        .lider-card:nth-child(4) p {
            color: #ecf0f1;
        }

        .lider-card strong {
            font-weight: 600;
        }

        .lider-card:nth-child(4) strong {
            color: #0c9112;
        }

        .lider-card:nth-child(-n+3) strong {
            color: #ad123c;
        }

        /* BOTÓN MEJORADO */
        .btn-division {
            display: inline-block;
            background: var(--azul-oscuro);
            color: white;
            padding: 12px 25px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            align-self: flex-start;
            margin-top: auto;
            border: none;
            cursor: pointer;
        }

        .btn-division:hover {
            background: var(--azul-oscuro);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(244, 121, 32, 0.3);
        }

        /* EFECTOS DE ICONOS */
        .lider-card:nth-child(1)::after {
            content: '⚙️';
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 40px;
            opacity: 0.15;
        }

        .lider-card:nth-child(2)::after {
            content: '🌐';
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 40px;
            opacity: 0.15;
        }

        .lider-card:nth-child(3)::after {
            content: '⚡';
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 40px;
            opacity: 0.15;
        }

        .lider-card:nth-child(4)::after {
            content: '🌱';
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 40px;
            opacity: 0.15;
        }

        /* RESPONSIVE */
        @media screen and (max-width: 900px) {
            .lider-grid {
                grid-template-columns: 1fr;
                gap: 25px;
                max-width: 600px;
                margin: 0 auto;
            }
            
            .lider-main-title {
                font-size: 30px;
            }
            
            .lider-card {
                min-height: 250px;
                padding: 30px 25px;
            }
        }

        @media screen and (max-width: 600px) {
            .lider-section {
                padding: 60px 0;
            }
            
            .lider-main-title {
                font-size: 26px;
                margin-bottom: 40px;
            }
            
            .lider-card {
                padding: 25px 20px;
                min-height: 220px;
            }
            
            .lider-card h3 {
                font-size: 20px;
            }
            
            .btn-division {
                padding: 10px 20px;
                font-size: 14px;
            }
        }
/* SECCIÓN PRESENCIA INTERNACIONAL */
.presencia-section {
    background: #f8f9fa;
    padding: 3rem 5%;
    border-top: 3px solid var(--azul-oscuro);
}

.presencia-title {
    color: var(--azul-oscuro);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
}

.presencia-content {
    max-width: 1200px;
    margin: 0 auto;
}

.presencia-text {
    color: #1f2937;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.presencia-text strong {
    color: var(--azul-oscuro);
    font-weight: 700;
    font-size: 1.15rem;
}

.presencia-text span {
    color: #4b5563;
}

/* EXPERIENCIA COMPROBADA */
.experiencia-section {
    background: white;
    padding: 2rem 5%;
}

.experiencia-title {
    color: var(--azul-oscuro);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.experiencia-table,
.table-container {
    display: none !important;
}

.mobile-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--azul-oscuro);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--azul-oscuro) 0%, var(--rojo) 100%);
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.client-name {
    color: var(--azul-oscuro);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.investment-badge {
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(234, 45, 12, 0.3);
}

.project-info {
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 3px solid var(--rojo);
}

.project-description {
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.project-description strong {
    color: var(--azul-oscuro);
    font-weight: 700;
}

.project-description em {
    font-style: italic;
    color: #6b7280;
}

.project-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.country-flag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    font-size: 0.95rem;
}

.country-name {
    background: var(--azul-oscuro);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CARRUSEL DE LOGOS */
.carousel-section {
    background: #ffffff;
    padding: 4rem 5%;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
}

.carousel-title {
    color: var(--azul-oscuro);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 5%,
        rgba(255, 255, 255, 0) 95%,
        rgba(255, 255, 255, 1) 100%);
}

.logo-slider-track {
    display: flex;
    gap: 4rem;
    animation: slide-logos 60s linear infinite;
    width: fit-content;
    will-change: transform;
}

.logo-slider:hover .logo-slider-track {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes slide-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* COOKIES */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-text p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-accept {
    background: #4CAF50;
    color: white;
}

.btn-accept:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-reject:hover {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.btn-settings {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-settings:hover {
    background: white;
    color: #1e3c72;
}

#cookieModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-header h3 {
    font-size: 18px;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.cookie-details {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:disabled + .slider {
    background-color: #b0b0b0;
    cursor: not-allowed;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#cookieSettingsBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    display: none;
}

#cookieSettingsBtn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.badge-required {
    background: #e3f2fd;
    color: #1976d2;
}

/* HERO HEADER PROYECTOS */
.hero-section {
    background-image: url('../img/bg_proyectos.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 3rem;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    color: #ffffff;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .offices-grid {
        gap: 1rem;
    }

    .footer-left {
        width: 260px;
    }

    .orc-grid,
    .projects-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .lider-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lider-card-large {
        grid-column: 1 / 3;
    }
}

@media (max-width: 780px) {
    .menu-toggle {
        display: flex;
        z-index: 130;
    }

    nav {
        padding: 0.8rem 3%;
    }

    .logo-container {
        flex-direction: row;
        gap: 0.5rem;
    }

    .logo {
        height: 40px;
        max-width: 110px;
    }

    .logo-text {
        font-size: 0.85rem;
    }

    .lang-selector-desktop {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px 40px;
        gap: 1.5rem;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
        transition: right 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
        z-index: 130;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        color: var(--texto-dark);
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
        position: relative;
        z-index: 131;
    }

    .nav-links .lang-selector-group {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #e6e6e6;
        gap: 0.5rem;
        position: relative;
        z-index: 131;
    }

    .nav-links .lang-selector {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
        min-width: 60px;
        position: relative;
        z-index: 131;
    }

    .overlay {
        z-index: 120 !important;
    }

    .nav-links {
        z-index: 130 !important;
    }

    .nav-links a,
    .nav-links .lang-selector-group,
    .nav-links .lang-selector {
        z-index: 131 !important;
        position: relative;
    }

    .menu-toggle {
        z-index: 135 !important;
    }

    .inicio-hero {
        height: 475px;
    }

    .hero-overlay {
        padding: 1.5rem 2rem;
    }

    .hero-text-content h1 {
        font-size: 1.8rem;
    }

    .hero-text-content p {
        font-size: 1rem;
    }

    .inicio-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .orc-header h2,
    #proyectos-title,
    #servicios-integrales-title {
        font-size: 1.8rem;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-left {
        width: 100%;
    }

    .offices-grid {
        flex-direction: column;
    }

    .offices-col {
        width: 100%;
        gap: 0.8rem;
    }

    .office {
        margin-bottom: 1rem;
    }

    /* Modal responsive */
    .orc-modal-container {
        width: 92%;
        max-height: 88vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        padding-right: 40px;
    }

    .modal-tabs {
        display: none !important;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .modal-tab-content {
        display: block !important;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .modal-card-image {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

    .modal-card-body {
        padding: 1.2rem;
    }

    .modal-card-body h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: var(--rojo);
    }

    .modal-card-intro {
        font-size: 0.95rem;
        color: #4b5563;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .modal-expandable-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-expandable-content.expanded {
        max-height: 2000px;
    }

    .modal-toggle-btn {
        background: var(--azul-oscuro);
        color: white;
        border: none;
        padding: 0.7rem 1.5rem;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: background 0.3s, transform 0.2s;
    }

    .modal-toggle-btn:hover {
        background: #102a78;
    }

    .modal-toggle-btn:active {
        transform: scale(0.98);
    }

    .modal-toggle-icon {
        display: inline-block;
        transition: transform 0.3s;
        font-size: 1.1rem;
    }

    .modal-toggle-btn.expanded .modal-toggle-icon {
        transform: rotate(180deg);
    }

    .modal-expandable-content .modal-highlight-box {
        margin: 1rem 0;
    }

    .modal-expandable-content h4 {
        font-size: 1.05rem;
        margin-top: 1.2rem;
    }

    .modal-expandable-content ul {
        margin: 0.8rem 0;
    }

    .modal-expandable-content li {
        font-size: 0.9rem;
        margin: 0.4rem 0;
    }

    .timeline-main-title {
        font-size: 1.8rem;
    }

    .timeline-section {
        padding: 3rem 3%;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-year {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

    .timeline-content {
        padding: 1rem 1.2rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .lider-section {
        padding: 3rem 3%;
    }

    .lider-main-title {
        font-size: 1.8rem;
    }

    .lider-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .lider-card-large {
        grid-column: 1;
    }

    .lider-card h3 {
        font-size: 1.2rem;
    }

    .lider-card p {
        font-size: 0.95rem;
    }

    .experiencia-section {
        padding: 3rem 5%;
    }

    .experiencia-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .mobile-cards-container {
        gap: 1.5rem;
    }

    .experience-card {
        padding: 2rem;
        border-left: 6px solid var(--azul-oscuro);
    }

    .client-name {
        font-size: 1.3rem;
    }

    .investment-badge {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-description {
        font-size: 1.05rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-section {
        height: 50vh;
    }

    .cookie-container {
        flex-direction: column;
    }

    .cookie-buttons {
        width: 100%;
    }

    .btn {
        flex: 1;
        text-align: center;
    }

    .modal-content {
        margin: 10px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 650px) {
    .orc-grid,
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .construction-container {
        padding: 3rem 1.5rem;
    }

    .construction-container h1 {
        font-size: 2rem;
    }

    .construction-container p {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .card-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.6rem 3%;
    }

    .logo {
        height: 55px;
        max-width: 100px;
    }

    .logo-text {
        font-size: 0.75rem;
    }

    .lang-selector {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 35px;
    }

    .construction-container {
        padding: 2rem 1rem;
    }

    .construction-container h1 {
        font-size: 1.6rem;
    }

    .construction-container p {
        font-size: 0.95rem;
    }

    .construction-icon {
        font-size: 3.5rem !important;
    }

    .inicio-hero {
        height: 425px;
    }

    .hero-overlay {
        padding: 0.5rem 1.5rem;
    }

    .hero-text-content h1 {
        font-size: 1.5rem;
    }

    .hero-text-content p {
        font-size: 0.9rem;
    }

    .section-content {
        padding: 2rem 3%;
    }

    .orc-section,
    .projects-section,
    .services-section {
        padding: 3rem 3%;
    }

    .gmk-box img {
        max-width: 120px;
    }

    .office h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .office p {
        font-size: 0.85rem;
    }

    .orc-modal-container {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        padding: 0;
        border-radius: 12px;
    }

    .modal-header {
        padding: 1.2rem 1rem 0.8rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
        padding-right: 35px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .modal-tabs {
        padding: 0.8rem 1rem 0;
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .modal-tabs::-webkit-scrollbar {
        display: none;
    }

    .modal-tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .modal-content {
        padding: 1rem;
        max-height: calc(90vh - 160px);
        overflow-y: auto;
    }

    .modal-content h3 {
        font-size: 1.1rem;
    }

    .modal-content h4 {
        font-size: 1rem;
    }

    .modal-content p,
    .modal-content li {
        font-size: 0.9rem;
    }

    .modal-highlight-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    .modal-card-image {
        height: 160px;
    }

    .modal-card-body {
        padding: 1rem;
    }

    .modal-card-body h3 {
        font-size: 1.2rem;
    }

    .modal-card-intro {
        font-size: 0.9rem;
    }

    .modal-toggle-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .timeline-main-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .timeline-main-title .highlight-adn {
        padding: 0.1rem 0.5rem;
        font-size: 0.95rem;
    }

    .timeline::before {
        width: 3px;
    }

    .timeline-item {
        padding-left: 25px;
        margin-bottom: 1.5rem;
    }

    .timeline-item::before {
        left: -7px;
        width: 14px;
        height: 14px;
        top: 15px;
    }

    .timeline-year {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .timeline-content {
        padding: 0.8rem 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .lider-main-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .lider-card {
        padding: 1.5rem 1.2rem;
    }

    .lider-card h3 {
        font-size: 1.1rem;
    }

    .lider-card p {
        font-size: 0.9rem;
    }

    .experiencia-section {
        padding: 2rem 3%;
    }

    .experiencia-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .mobile-cards-container {
        gap: 1rem;
    }

    .experience-card {
        padding: 1.2rem;
        border-radius: 10px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .client-name {
        font-size: 1.1rem;
        min-width: auto;
    }

    .investment-badge {
        align-self: flex-start;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .project-info {
        padding: 1rem;
        margin: 0.8rem 0;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .project-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (min-width: 768px) {
    .experiencia-section {
        padding: 3rem 5%;
    }

    .experiencia-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .mobile-cards-container {
        gap: 1.5rem;
    }

    .experience-card {
        padding: 2rem;
        border-left: 6px solid var(--azul-oscuro);
    }

    .client-name {
        font-size: 1.3rem;
    }

    .investment-badge {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-description {
        font-size: 1.05rem;
    }
}

@media (min-width: 1024px) {
    .experiencia-section {
        padding: 4rem 5%;
    }

    .mobile-cards-container {
        gap: 2rem;
    }

    .experience-card {
        padding: 2.5rem;
        border-radius: 16px;
    }

    .client-name {
        font-size: 1.4rem;
    }

    .investment-badge {
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
    }

    .project-info {
        padding: 1.8rem;
        margin: 1.5rem 0;
    }

    .project-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}
