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

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

body {
    font-family:'Segoe UI',sans-serif;
    color:#333;
    background:#fff;
    position: relative;
}

html {scroll-behavior:smooth;}

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

.logo img {height:80px;cursor:pointer;margin-top:20px;}

/* 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;transition:.3s;}
nav a:hover,nav a.active {color:#001f54;text-decoration:underline;}

/* ========== BOTÓN VOLVER ARRIBA ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #001f54;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 31, 84, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #003a9b;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 31, 84, 0.4);
}

.back-to-top span {
    font-weight: bold;
    line-height: 1;
}

/* 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;
}

/* Rubros */
.rubros {padding:80px 50px;text-align:center;background:#f8f8f8;}
.rubros h2 {font-size:40px;margin-bottom:50px;color:#001f54;}
.rubros-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;max-width:1200px;margin:0 auto;
}
.rubro-item {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:white;border-radius:20px;padding:40px 20px;
  text-decoration:none;color:#333;transition:all .3s ease;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}
.rubro-item:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.2);
}
.icon-area img {width:60px;height:60px;object-fit:contain;margin-bottom:15px;}
.rubro-item span {font-size:18px;font-weight:500;text-align:center;}

/* Clients */
.clients-section {padding:80px 50px;max-width:1300px;margin:0 auto;}
.section-title-wrapper {margin-bottom:40px;}
.industry-title {font-size:36px;color:#001f54;margin-bottom:20px;}
.clients-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:30px;
}
.client-item {
  border-bottom:1px solid #e0e0e0;padding-bottom:20px;transition:transform .3s ease;
}
.client-item:hover {transform:translateX(5px);}
.client-category {font-size:14px;color:#888;}
.client-name {font-size:22px;color:#000;font-weight:500;}

/* 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;
}

/* 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;
}

/* Buttons */
.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;
}

/* ========== 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%;
    }

    /* Botón volver arriba en móvil */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

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

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

    .rubros {
        padding: 60px 30px;
    }

    .rubros h2 {
        font-size: 32px;
    }

    .rubros-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .clients-section {
        padding: 60px 30px;
    }

    .industry-title {
        font-size: 28px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .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;
    }
}

/* ==================== 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;
    }
}