body {
    margin: 0;
    background: #05053d;
    color: white;
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    padding: 15px 20px;
    background: #05053d;
    display: flex;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    width: 120px;
}

/* MENÚ DESKTOP - visible solo en pantallas grandes */
.desktop-menu {
    display: none;
    gap: 30px;
    align-items: center;
    margin-left: auto;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.desktop-menu a:hover {
    color: #b8c6ff;
}

/* ICONOS DE REDES SOCIALES DESKTOP */
.desktop-social {
    display: none;
    gap: 15px;
    align-items: center;
}

.desktop-social a {
    color: white;
    font-size: 22px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.desktop-social a:hover {
    color: #b8c6ff;
    transform: scale(1.15);
}

/* Ícono menú hamburguesa (solo mobile) */
.menu-icon {
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
    display: block;
}

/* SIDEBAR (solo mobile) */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: #05053d;
    overflow-y: auto;
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    padding-bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar a {
    padding: 15px 25px;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 17px;
}

.sidebar a:hover {
    background: #ffffff22;
}

.closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

/* ICONOS DE REDES SOCIALES EN SIDEBAR (mobile) */
.sidebar-social {
    margin-top: 30px;
    padding: 20px 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #ffffff22;
}

.sidebar-social a {
    padding: 0;
    color: white;
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar-social a:hover {
    color: #b8c6ff;
    transform: scale(1.2);
    background: transparent;
}

/* Overlay */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    top: 0;
    left: 0;
    display: none;
    z-index: 500;
}

/* HERO */
.hero {
    background: url('../img/hero.jpg');
    background-size: cover;
    padding: 40px 20px;
    text-align: center;
}

/* SERVICES */
.services {
    text-align: center;
    padding: 50px 0 20px 0;
}

.service-grid {
    max-width: 900px;
    margin: auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.service-card {
    background: #08084f;
    padding: 15px;
    border-radius: 10px;
}

.service-card img {
    width: 100%;
    border-radius: 10px;
}

/* LOAN CTA */
.loan-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 30px;
}

.loan-content {
    background: #031a2f;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.loan-content::after {
    content: none;
}

.loan-heading {
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
    color: #b8c6ff;
    font-weight: 500;
    letter-spacing: 1px;
}

.loan-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.loan-content p {
    color: #dce3ff;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-white {
    padding: 12px 28px;
    background: white;
    color: #031a2f;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
}

.btn-white:hover {
    background: #d7d7ff;
}

/* ============================================
   RESPONSIVE - DESKTOP (pantallas anchas)
   ============================================ */
@media (min-width: 992px) {
    /* Mostrar menú desktop */
    .desktop-menu {
        display: flex;
    }

    /* Mostrar iconos de redes sociales desktop */
    .desktop-social {
        display: flex;
    }

    /* Ocultar menú hamburguesa */
    .menu-icon {
        display: none;
    }

    /* Ajustar espaciado del nombre del sitio */
    .site-name {
        margin-right: 0;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 991px) {
    /* LAYOUT INTERCALADO EN MOBILE */
    .service-grid {
        flex-direction: column;
        max-width: 500px;
    }

    /* Invertir el orden de imagen y texto alternadamente */
    .service-card:nth-child(1) {
        display: flex;
        flex-direction: column;
    }

    .service-card:nth-child(2) {
        display: flex;
        flex-direction: column-reverse;
    }

    .service-card:nth-child(3) {
        display: flex;
        flex-direction: column;
    }

    /* Ajustar espaciado interno */
    .service-card img {
        margin-bottom: 15px;
    }

    .service-card:nth-child(2) img {
        margin-bottom: 0;
        margin-top: 15px;
    }

    .loan-content {
        max-width: 90%;
        text-align: center;
    }

    .site-name {
        font-size: 20px;
        margin-right: 0;
    }

    /* Asegurar que el menú hamburguesa esté visible */
    .menu-icon {
        display: block;
    }

    /* Ocultar menú y redes sociales desktop en mobile */
    .desktop-menu,
    .desktop-social {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-name {
        font-size: 18px;
    }

    .logo {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .site-name {
        font-size: 16px;
    }

    .logo {
        width: 80px;
    }
}