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

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

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

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

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

/* Divider */
.divider {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    margin-bottom: 30px;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.divider span {
    margin: 0 30px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 80px 100px;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 80px;
    color: #000;
}

/* Feature Item */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.feature.reverse {
    direction: rtl;
}

.feature.reverse > * {
    direction: ltr;
}

.feature-media {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-media img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.feature-media:hover img {
    transform: scale(1.05);
}

.feature-body h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.feature-body p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.feature-body ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-body ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.feature-body ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #001f54;
    font-weight: bold;
}

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

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

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

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

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

/* ========== DOWNLOADS SECTION ========== */
.downloads {
    padding: 80px;
    background: #f8f8f8;
    text-align: center;
}

.downloads h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.downloads p {
    font-size: 17px;
    color: #666;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 24px;
}

.download-item {
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.download-item span {
    font-size: 18px;
    font-weight: 500;
    color: #111;
    max-width: 85%;
    text-align: left;
}

.download-item:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.download-item a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-item button {
    background: #001f54;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 31, 84, 0.25);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    pointer-events: auto;
}

.download-item button:hover {
    background: #003a9b;
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 31, 84, 0.35);
}

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

    .features-section {
        padding: 40px 30px 60px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 50px;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .feature.reverse {
        direction: ltr;
    }

    .feature-media img {
        height: 300px;
    }

    .feature-body h3 {
        font-size: 24px;
    }

    .feature-body p,
    .feature-body ul li {
        font-size: 16px;
    }

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

    /* Downloads responsive */
    .downloads {
        padding: 60px 30px;
    }

    .downloads h2 {
        font-size: 28px;
    }

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

    .download-item {
        padding: 20px;
    }

    .download-item span {
        font-size: 16px;
    }
}

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