html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: white;
    padding: 5px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
    margin-top: 20px;
}

.logo img:hover {
    opacity: 0.8;
}

/* Botón hamburguesa - OCULTO en desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #001f54;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Botón cerrar menú (X) - SOLO visible en móvil cuando el menú está abierto */
.close-menu {
    display: none;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #001f54;
    text-decoration: underline;
}

/* Hero Sections */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 80px 80px 80px;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-label {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Sections */
section {
    padding: 80px;
}

/* Section Header normal (sin línea) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.section-title {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
}

/* Línea SOLO para la sección de partners */
.section-header.with-line {
    position: relative;
}

.section-header.with-line .section-label {
    position: relative;
    display: inline-block;
    padding: 0 30px;
    background: white;
    z-index: 2;
}

.section-header.with-line::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-box {
    border-radius: 20px;
    height: 400px;
    background-size: cover;
    background-position: center;
}

/* ==================== INDUSTRIAS CAROUSEL (REHECHO) ==================== */

.industrias-section {
    padding: 80px;
}

.industrias-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.industriasSwiper {
    overflow: visible;
}

.industria-card {
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.industria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.3;
}

/* Flechas */
.industrias-carousel .swiper-button-prev,
.industrias-carousel .swiper-button-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.industrias-carousel .swiper-button-prev { left: 0; }
.industrias-carousel .swiper-button-next { right: 0; }

.industrias-carousel .swiper-button-prev::after,
.industrias-carousel .swiper-button-next::after {
    font-size: 14px !important;
    font-weight: 700;
    color: #444 !important;
}

.industrias-carousel .swiper-button-prev:hover,
.industrias-carousel .swiper-button-next:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Pagination */
.industrias-carousel .swiper-pagination {
    margin-top: 30px;
    position: relative !important;
}

.swiper-pagination-bullet {
    background: #001f54;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #001f54;
}

/* ==================== ACCORDION ==================== */

.accordion {
    max-width: 800px;
}

.accordion-item {
    border-left: 3px solid transparent;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.accordion-item:hover {
    background: #f9fafc;
    border-left-color: #001f54;
    transform: translateX(4px);
}

.accordion-item:hover .accordion-number {
    color: #001f54;
}

.accordion-item:hover span {
    color: #001f54;
}

.accordion-item:hover .accordion-content {
    color: #333;
}

.accordion-item.active {
    border-left-color: #001f54;
    background: #f8f8f8;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 500;
}

.accordion-number {
    color: #666;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 45px;
    color: #666;
    margin-top: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    margin-top: 15px;
}

/* ==================== INFINITE SCROLL PARTNERS ==================== */

.scroller {
    max-width: 100%;
    margin: 0 auto;
}

.scroller__inner {
    padding-block: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(
        90deg,
        transparent,
        white 10%,
        white 90%,
        transparent
    );
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s)
        var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 50s;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1.5rem));
    }
}

.logo-partner {
    min-width: 200px;
    max-width: 220px;
    height: 100px;
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.logo-partner:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo-partner img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ==================== CTA SECTION ==================== */

.cta-section {
    background-size: cover;
    background-position: center;
    padding: 120px 80px;
    text-align: center;
    color: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid white;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background: white;
    color: #001f54;
}

/* ==================== FOOTER ==================== */

footer {
    background: #001f54;
    color: white;
    padding: 60px 80px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-column li.Dirección,
.footer-column li.Dirección + li {
    margin-bottom: 2px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 18px;
    transition: opacity 0.3s;
    display: inline-block;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    /* Header móvil con hamburguesa */
    header {
        flex-direction: row;
        justify-content: space-between;
        width: 95%;
        padding: 10px 20px;
        top: 10px;
    }

    .logo img {
        height: 50px;
    }

    /* MOSTRAR botón hamburguesa SOLO en móvil */
    .hamburger {
        display: flex;
    }

    /* Botón cerrar (X) visible en móvil */
    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .close-menu span {
        font-size: 45px;
        color: #001f54;
        line-height: 1;
        font-weight: 300;
    }

    .close-menu:hover span {
        color: #003d8f;
    }

    /* Navegación móvil */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        gap: 0;
    }

    nav.active {
        right: 0;
    }

    nav a {
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .hero {
        padding: 0 30px 60px 30px;
    }

    .hero h1 {
        font-size: 36px;
    }

    section {
        padding: 40px 30px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    /* Carousel móvil */
    .industrias-section {
        padding: 60px 30px;
    }

    .industrias-carousel {
        padding: 0 50px;
    }

    .industrias-carousel .swiper-button-prev,
    .industrias-carousel .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .industrias-carousel .swiper-button-prev { left: 0; }
    .industrias-carousel .swiper-button-next { right: 0; }

    .card-image {
        height: 200px;
    }

    .cta-section {
        padding: 80px 30px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    footer {
        padding: 40px 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .scroller__inner {
        gap: 2rem;
    }
    
    .logo-partner {
        min-width: 150px;
        max-width: 170px;
        height: 80px;
        padding: 15px 20px;
    }
    
    .logo-partner img {
        max-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroller__inner {
        animation: none !important;
    }
}

/* ==================== SELECTOR DE IDIOMA DROPDOWN ==================== */

.language-dropdown {
    position: relative;
    margin-left: 20px;
}

.lang-toggle {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.lang-toggle:hover {
    background: #e8e8e8;
    border-color: #001f54;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border-radius: 12px;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: #001f54;
    color: white;
    font-weight: 600;
}

/* Móvil */
@media (max-width: 768px) {
    header {
        display: flex;
        align-items: center;
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .language-dropdown {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .lang-toggle {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .hamburger {
        order: 3;
        flex-shrink: 0;
    }
}