@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --primary-navy: #164f6c;
    --accent-orange: #f39200;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f4f7f9;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-font {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    justify-content: space-around;
}

.section-padding {
    padding: 100px 50px 50px 50px;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-navy);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 146, 0, 0.3);
}

/* Layout Utilities */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .section-padding {
        padding: 60px 20px 40px 20px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-socials a {
    margin-right: 15px;
    opacity: 0.8;
}

.top-bar-socials a:hover {
    opacity: 1;
    color: var(--accent-orange);
}

.top-bar-info span {
    margin-left: 20px;
}

.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px 15px 30px;
}

.logo,
.header-contact {
    flex: 1;
}

.header-contact {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.header-contact a:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    padding-right: 30px;
    padding-left: 0px;
}

.logo a {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main {
    display: flex;
    align-items: center;
}

.logo .more {
    color: var(--primary-navy);
}

.logo .turismo {
    color: var(--accent-orange);
    margin-left: 0px;
}

.logo-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.2px;
    line-height: 1.1;
    color: var(--primary-navy);
}

.tagline-column {
    display: flex;
    flex-direction: column;
}

.tagline-blue {
    color: var(--primary-navy);
}

.tagline-orange {
    color: var(--accent-orange);
}

.ampersand {
    font-size: 1.8rem;
    color: var(--accent-orange) !important;
    font-weight: 400;
    line-height: 1;
    -webkit-text-fill-color: initial; /* Reset previous gradient if any */
    background: none; /* Reset previous gradient if any */
}

.nav-menu {
    display: flex;
    gap: 20px;
    flex: initial;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-navy);
    font-size: 0.9rem;
    position: relative;
}


.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-orange);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section & Carousel */
.hero.carousel {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    color: white;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.carousel-item.active .hero-content h1 {
    animation: fadeInUp 1s ease forwards;
    opacity: 1;
}

.carousel-item.active .hero-content .btn {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.carousel-item .hero-content .btn {
    opacity: 0;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 3;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--accent-orange);
    color: white;
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--accent-orange);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-title h2,
    .about-text h2,
    .consultoria-text h2,
    .clients-header-info h2,
    .success-banner h2 {
        font-size: 1.8rem;
    }
    .carousel-controls {
        padding: 0 20px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* About Section */
.about-box {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.about-box:hover {
    background-color: var(--primary-navy);
}

.about-box:hover h2 {
    color: white;
}

.about-box h2 {
    color: var(--primary-navy);
    font-size: 2rem;
    text-transform: none;
    transition: var(--transition);
}

/* Títulos de sección en azul */
.about-text h2,
.consultoria-text h2,
.clients-header-info h2,
.section-title h2 {
    color: var(--primary-navy);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text h2,
.consultoria-text h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after,
.consultoria-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
}

.text-center {
    text-align: center;
}

.text-center h2::after {
    left: 50% !important;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-orange);
}

/* Success Banner */
.success-banner {
    background: linear-gradient(rgba(22, 79, 108, 0.85), rgba(22, 79, 108, 0.85)), url('https://images.unsplash.com/photo-1551288049-bbbda536ad0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    padding: 20px 0 20px 0;
    color: white;
    text-align: center;
}

.success-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    color: #999;
}

.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: space-around;
    gap: 40px;
}

.footer-main-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 60px;
}

.footer-socials {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: center;
}

.footer-socials a {
    color: white;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-orange);
}

.footer-icons a {
    font-size: 1.6rem;
}

.footer-icons a:hover {
    transform: translateY(-3px);
}

.footer-icons {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.footer-links a {
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-links span {
    margin: 0 15px;
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Profiles & Special Sections */
.director-section {
    background-color: var(--bg-light);
    overflow: hidden;
}

.ceo-card-refined {
    display: flex !important;
    align-items: stretch !important;
    background: #ffffff !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08) !important;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 450px !important;
}

.ceo-image-wrap {
    flex: 0 0 40% !important;
    max-width: 40% !important;
    position: relative;
    overflow: hidden;
}

.ceo-image-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px 0 0 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: scale(1.01); /* Evita micro-bordes blancos */
}

.ceo-info-content {
    flex: 1 !important;
    padding: 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ceo-info-content h3 {
    color: var(--accent-orange);
    font-size: 2.8rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.ceo-info-content h2 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: none;
}

.ceo-info-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: none;
}

.enfoque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.enfoque-item {
    background: rgba(22, 79, 108, 0.03);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(22, 79, 108, 0.05);
}

.enfoque-item i {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.enfoque-item h4 {
    margin-bottom: 10px;
    color: var(--primary-navy);
}

@media (max-width: 992px) {
    .ceo-card-refined {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .ceo-image-wrap {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
    }
    .ceo-image-img {
        border-radius: 12px 12px 0 0 !important;
    }
    .ceo-info-content {
        padding: 30px 20px !important;
    }
    .ceo-info-content h3 {
        font-size: 2rem;
    }
    .ceo-info-content h2 {
        font-size: 1.5rem;
    }
    .enfoque-grid {
        grid-template-columns: 1fr;
    }
}

/* Team Section Subpage Style */
.team-section {
    text-align: center;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    flex: 0 1 240px; /* Reducido para que quepan 4 en línea cómodamente */
    transition: var(--transition);
}

.member-img-container {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    aspect-ratio: 3/4;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.team-member:hover .member-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.member-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem; /* Reducido de 1.1rem */
    margin-bottom: 5px;
    color: var(--primary-navy);
}

.member-role {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.75rem; /* Reducido de 0.85rem */
    color: #C5A07D;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .team-member {
        flex: 1 1 100%; /* Ocupa ancho completo en móvil */
        max-width: 400px;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 10;
    top: 100%;
    left: 0;
    border-radius: 4px;
}

.dropdown-content a {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Clients Section (Full Width Layout) */
.clients-light-section {
    background-color: #ffffff;
    overflow: hidden;
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.clients-header-container {
    padding-bottom: 40px;
    text-align: center;
}

.clients-header-info {
    max-width: 800px;
    margin: 0 auto;
}

.clients-header-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.dark-line {
    width: 60px;
    height: 2px;
    background-color: var(--accent-orange);
    margin-bottom: 25px;
}

.center-line {
    margin: 0 auto 25px auto;
}

.clients-header-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Horizontal Scroller (2 Rows) */
.logo-scroller-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}


.carousel-title {
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: left;
    border-left: 3px solid var(--accent-orange);
    padding-left: 10px;
}

.logo-track-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 250px;
    width: max-content;
}

.logo-item {
    flex: 0 0 220px; /* Espacio uniforme para todos los logos */
    height: 110px; /* Altura máxima estricta para igualar visualmente */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-item i, .logo-item img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
    opacity: 1;
    transition: var(--transition);
}

.invert-logo {
    filter: invert(1) brightness(1.5);
}

.brighten-logo {
    filter: brightness(1.2) contrast(1.1);
}

.enlarge-logo {
    transform: scale(1.6);
}

.enlarge-logo-medium {
    transform: scale(1.15);
}

/* Animations for Horizontal Scroll */
.scroll-left {
    /* El carrusel 1 tiene 18 logos por ciclo */
    animation: scrollLeft 80s linear infinite;
}

.scroll-right {
    /* El carrusel 2 tiene 5 logos por ciclo */
    animation: scrollRight 45s linear infinite; 
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (max-width: 992px) {
    .clients-header-container {
        padding: 0 20px;
        margin-bottom: 20px;
    }
}

/* Timeline View Layout (Nuestra Historia) */
.history-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    position: relative;
    align-items: start;
}

@media (max-width: 992px) {
    .history-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Timeline Sidebar */
.timeline-nav {
    position: sticky;
    top: 100px; /* Below standard header */
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-top: 20px;
    scrollbar-width: none;
}
.timeline-nav::-webkit-scrollbar {
    display: none;
}

.timeline-sticky {
    position: relative;
    padding-left: 10px; /* Space for the vertical line */
}

/* Vertical line */
.timeline-line {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 2px;
    background-color: rgba(22, 79, 108, 0.2); /* primary-navy faint */
    z-index: 0;
}

#timeline-list {
    position: relative;
    z-index: 1;
}

#timeline-list li {
    margin-bottom: 25px;
}

.timeline-link {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.timeline-link:hover {
    color: var(--primary-navy);
}

.timeline-link.active {
    color: var(--accent-orange);
}

.year-circle {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 3px solid rgba(22, 79, 108, 0.5);
    margin-right: 15px;
    transition: var(--transition);
    position: relative;
    left: -7px;
}

.timeline-link:hover .year-circle {
    border-color: var(--primary-navy);
}

.timeline-link.active .year-circle {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(243, 146, 0, 0.5);
}

/* Year Section Specifics */
.year-section {
    padding-bottom: 80px;
    border-bottom: 1px dotted rgba(0,0,0,0.1);
    margin-bottom: 60px;
}
.year-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.year-section .grid {
    margin-bottom: 30px;
}

.year-section .grid:last-child {
    margin-bottom: 0;
}

.year-title {
    color: var(--primary-navy);
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: none;
}

.year-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Collaborative Teams & Department Styles */
.country-selector, .dept-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.country-tab, .dept-tab {
    background: white;
    border: 1px solid #ddd;
    padding: 12px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-navy);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    letter-spacing: 1px;
}

.country-tab:hover, .dept-tab:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.country-tab.active, .dept-tab.active {
    background-color: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
    box-shadow: 0 5px 15px rgba(22, 79, 108, 0.2);
}

.collaboration-grid, .dept-grid {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.collaboration-grid.active, .dept-grid.active {
    display: block; 
    animation: fadeInUpCollaboration 0.6s ease forwards;
}

.agency-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 700;
}

.grid-2-columns {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUpCollaboration {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-fondos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

.grid-fondos img {
    width: 100%;
    height: 100%;
}

/* Estilos para páginas de Casos de Éxito / Contratos */
.hero-caso {
    position: relative;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-caso h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
    line-height: 1.3;
}

.hero-caso h3 {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    color: var(--accent-orange);
    text-transform: none;
    line-height: 1.5;
}

.ficha-tecnica {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.ficha-tecnica h4 {
    color: var(--primary-navy);
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
    padding-bottom: 10px;
}

.ficha-item {
    margin-bottom: 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.ficha-item:last-child {
    border-bottom: none;
}

.ficha-item strong {
    color: var(--primary-navy);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.text-section h3 {
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.ext-margin-btm {
    margin-bottom: 40px;
}

.explicativo-item {
    margin-bottom: 20px;
}

.explicativo-item strong {
    color: var(--primary-navy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.02);
}

.mapa-section {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0;
    border-radius: 12px;
    margin-top: 50px;
}

/* Responsiveness */
@media (max-width: 992px) {
    .header .container {
        padding: 10px 20px;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 40px;
        gap: 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        color: var(--primary-navy);
        cursor: pointer;
        background: none;
        border: none;
        z-index: 1002;
    }

    .logo {
        padding-right: 0;
    }

    .logo-tagline {
        font-size: 0.45rem;
    }

    /* Footer Responsive */
    .footer-main-row {
        gap: 30px;
    }

    .footer-socials {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-icons {
        gap: 25px;
        margin-bottom: 10px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .footer-links span {
        display: none; /* Ocultar los separadores | */
    }

    /* History Timeline Mobile Fix */
    .timeline-nav {
        position: sticky;
        top: 60px; /* Ajustar según altura de cabecera móvil */
        background: var(--bg-light);
        z-index: 999;
        width: 100%;
        padding: 15px 0;
        margin-bottom: 30px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        height: auto;
        overflow-y: visible;
    }

    .timeline-sticky {
        padding-left: 0;
    }

    .timeline-line {
        display: none;
    }

    #timeline-list {
        display: flex;
        overflow-x: auto;
        gap: 25px;
        padding: 0 20px;
        padding-right: 40px;
        scrollbar-width: none; /* Firefox */
        -webkit-overflow-scrolling: touch;
    }

    #timeline-list::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    #timeline-list li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .year-circle {
        display: none;
    }

    .timeline-link {
        font-size: 1rem;
        padding: 5px 0;
    }

    .year-section {
        scroll-margin-top: 200px; /* Mayor margen para evitar solapamiento con nav doble */
    }

    /* Additional Contract/Success Story Fixes */
    .hero-caso {
        padding: 60px 20px;
    }
    .hero-caso h1 {
        font-size: 1.6rem;
    }
    .hero-caso h3 {
        font-size: 1.1rem;
    }
    .ficha-tecnica {
        padding: 25px 20px;
    }
    .gallery-grid, .grid-fondos {
        grid-template-columns: 1fr;
    }
    .gallery-img {
        height: 250px;
    }
    .mapa-section {
        padding: 40px 20px !important;
    }

    /* Logo Scroller Fixes */
    .logo-track {
        gap: 80px; /* Reducir hueco entre logos en móvil */
    }
    .logo-item {
        flex: 0 0 150px;
        height: 80px;
    }
    .logo-scroller-grid {
        gap: 20px;
    }

    /* Top Bar Mobile Fix */
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .top-bar-info span {
        margin: 0 10px;
    }

    /* Hero Carousel Height Fix */
    .hero.carousel {
        height: 50vh;
    }

    /* Enhance Readability on Background Images */
    .hero-content h1, 
    .hero-caso h1 {
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }
}

.menu-toggle {
    display: none;
}

/* Animation Classes - Logic to make them work with JS visible class */
.animate, .animate-left, .animate-right {
    opacity: 0;
    transition: all 0.6s ease;
}

.animate.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-left.visible {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-right.visible {
    animation: fadeInRight 0.8s ease forwards;
}

/* News Content Styles (Blog) */
.news-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    transition: var(--transition);
    text-align: left;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid #ddd;
}

.news-image a {
    display: inline-block;
    cursor: pointer;
}

.news-text {
    flex: 2;
    min-width: 300px;
}

.news-text h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
    text-transform: none;
    line-height: 1.3;
}

.news-text .date {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary-navy);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.news-summary {
    background-color: rgba(243, 146, 0, 0.08);
    border-left: 4px solid var(--accent-orange);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.news-summary p {
    margin-bottom: 0 !important;
    font-size: 1.05rem;
}

.news-text h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.news-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 22px;
    color: var(--text-dark);
}

.news-text a {
    color: var(--accent-orange);
    font-weight: 500;
    transition: var(--transition);
}

.news-text a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-article {
        flex-direction: column;
        padding: 25px;
    }
    .news-image {
        max-width: 100%;
    }
    .news-text h2 {
        font-size: 1.8rem;
    }
}

/* Fix para portadas de secciones en móvil: evitar duplicados y mejorar legibilidad */
@media (max-width: 768px) {
    section.section-padding > div[style*="background-image"] {
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-position: center !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
        opacity: 0.15 !important;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1f2937;
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
    text-align: right;
    max-width: 600px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.accept-btn {
    background: #10b981;
    color: white;
}

.accept-btn:hover {
    background: #059669;
}

.decline-btn {
    background: #ef4444;
    color: white;
}

.decline-btn:hover {
    background: #dc2626;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-banner p {
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
