* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ENCABEZADO BLANCO */
.white-header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container .logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.hamburger-menu {
    font-size: 1.8rem;
    color: #555;
    cursor: pointer;
    background-color: #e0e0e0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s;
}

.hamburger-menu:hover {
    background-color: #ccc;
}

/* MENÚ HAMBURGUESA (lateral) */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 1rem;
}

.side-menu.open {
    left: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.close-menu {
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.side-menu ul {
    list-style: none;
}

.side-menu ul li {
    margin: 1.5rem 0;
}

.side-menu ul li a {
    text-decoration: none;
    color: #1a2b4c;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem;
    transition: background 0.2s;
}

.side-menu ul li a:hover {
    background-color: #f0f0f0;
    border-radius: 8px;
}

/* LOGIN */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 1rem 2rem 2rem 2rem;
    flex: 1;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border-top: 4px solid #26ac47;
}

.login-card h2 {
    color: #1a2b4c;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

/* ÍCONOS VERDES */
.input-group label i {
    color: #26ac47;
    margin-right: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s;
    background-color: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #26ac47;
    box-shadow: 0 0 0 2px rgba(38,172,71,0.1);
}

/* Estilos para el ojo de contraseña */
.password-group {
    position: relative;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #26ac47;
}

.login-btn {
    background-color: #26ac47;
    color: white;
    border: none;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background-color: #1e8c3a;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.login-links a {
    color: #26ac47;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ESPACIO PARA IMAGEN ARRIBA DEL LOGIN */
.top-image-container {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem 1rem;
}

.top-rename-img {
    max-width: 90%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* SECCIÓN PROMOCIONAL */
.promo-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    margin: 1rem 2rem 2rem 2rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.promo-left {
    flex: 0 0 80px;
}

.promo-img {
    width: 100%;
    max-width: 80px;
    height: auto;
    display: block;
}

.promo-right {
    flex: 1;
}

.promo-right h3 {
    color: #1a2b4c;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.promo-right p {
    color: #555;
    margin-bottom: 0.8rem;
}

.promo-btn {
    background-color: #26ac47;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.promo-btn:hover {
    background-color: #1e8c3a;
}

/* Sección featured */
.featured {
    background: linear-gradient(135deg, #fff 0%, #ffffff 100%);
    text-align: center;
    padding: 1.5rem;
    margin: 1rem 2rem 2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.featured h3 {
    color: #1a2b4c;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.featured p {
    color: #555;
    margin-bottom: 0;
}

/* FOOTER VERDE PEGADO ABAJO */
footer {
    background-color: #26ac47;
    color: white;
    text-align: center;
    padding: 1.2rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    .white-header {
        padding: 0.6rem 1rem;
    }
    .logo-img {
        height: 35px;
    }
    .promo-section {
        margin: 1rem;
        flex-direction: column;
        text-align: center;
    }
    .promo-left {
        flex: auto;
    }
    .promo-right h3 {
        font-size: 1.1rem;
    }
    .featured {
        margin: 1rem;
    }
}
