/* ============================================
   LOGITRAX - FINAL (RAYA + IMAGENES ALINEADAS)
   Azul cielo:      #4d9eff
   Raya menú:       #3a7bc8
   Footer oscuro:   #133454
   Fondo:           #ffffff
   Texto:           #2c3e50
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 18px;
}
body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}
/* HEADER */
header {
    background-color: #4d9eff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem 5% 0 5%;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    position: relative;
}
header::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: #3a7bc8;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-bottom: 0.5rem;
}
.logo-container img {
    height: 50px;
    width: auto;
    display: block;
}
nav {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}
nav a {
    background-color: #eef2f5;
    color: #4d9eff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    display: inline-block;
}
nav a:hover {
    background-color: #ffffff;
    color: #1a6eff;
    transform: translateY(-3px);
}
/* LAYOUT GENERAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section {
    padding: 3rem 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4d9eff;
    text-align: center;
    margin-bottom: 2rem;
}
/* GRID PARA CONTENIDO */
.grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.grid-2cols:last-child {
    border-bottom: none;
}
.text-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4d9eff;
    margin-bottom: 1rem;
}
.text-content p {
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: justify;
}
/* IMAGEN DERECHA: se pega a la derecha */
.image-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
/* IMAGEN IZQUIERDA: se pega a la izquierda */
.image-left {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.image-content img {
    width: 100%;
    max-width: 420px;
    height: 560px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block;
}
/* LISTAS */
.lista-beneficios {
    list-style: none;
    margin-top: 1.5rem;
}
.lista-beneficios li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.75rem;
}
.lista-beneficios li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4d9eff;
    font-weight: 700;
    font-size: 1.1rem;
}
/* BOTONES */
.btn {
    display: inline-block;
    background-color: #4d9eff;
    color: #ffffff;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn:hover {
    background-color: #1a6eff;
    transform: translateY(-2px);
}
/* FOOTER */
footer {
    background-color: #133454;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 5% 1.5rem;
    margin-top: 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col img {
    max-width: 140px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: #ffffff;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
    color: #ffcc00;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
/* RESPONSIVE */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    header {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a {
        border-radius: 8px;
        padding: 8px 12px;
    }
    header::after {
        bottom: -3px;
    }
    .grid-2cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    .image-right,
    .image-left {
        order: 2;
        justify-content: center;
    }
    .image-content img {
        max-width: 100%;
        height: 320px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-col img {
        margin: 0 auto 1rem auto;
    }
    .section {
        padding: 2rem 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
@media (max-width: 480px) {
    .btn {
        width: 100%;
        text-align: center;
    }
}
/* ── LANGUAGE SELECTOR ──────────────────────────────────── */
.lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}
.lang-selector-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.6);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-selector-btn:hover { background: rgba(255,255,255,0.35); }
.lang-arrow { font-size: 0.55rem; transition: transform 0.2s; display: inline-block; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e0eaf5;
}
.lang-selector.open .lang-dropdown { display: block; }
.lang-dropdown form { margin: 0; }
.lang-dropdown button {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 16px;
    text-align: left;
    color: #2c3e50;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.lang-dropdown button:hover { background: #f0f6ff; color: #4d9eff; }
.lang-dropdown button.lang-active { background: #e8f4ff; color: #4d9eff; font-weight: 700; }
.lang-dropdown hr { margin: 0; border: none; border-top: 1px solid #eef2f5; }