.mi-cuenta-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.mi-cuenta-menu {
    flex: 0 0 250px;
    padding: 15px;
    background: #fff; /* fondo blanco */
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05); /* sombra suave */
    border: 1px solid rgba(0, 0, 0, 0.1); /* borde gris suave */
}

.mi-cuenta-content {
    flex: 1;
    padding: 20px;
    border-radius: 5px;
    background: #fff; /* fondo blanco */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05); /* sombra suave */
    border: none; /* quitar borde */
}

.mi-cuenta-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* separador arriba para todo el menú */
}

.mi-cuenta-menu ul li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* separador entre items */
}

.mi-cuenta-menu ul li:last-child {
    border-bottom: none; /* quitar separador del último */
}

.mi-cuenta-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
    padding: 12px 12px; /* mismo padding en todas */
    border-radius: 0; /* sin bordes redondeados */
    text-align: left;
    background: none;
    line-height: 1.5; /* igual line-height para alinear vertical */
    margin: 0; /* sin margen extra */
}

/* Link activo */
.mi-cuenta-menu ul li a.active {
    background-color: #3B5998;
    color: #fff;
    border-radius: 3px 3px 0 0;
}

/* Hover para links */
.mi-cuenta-menu ul li a:hover:not(.active) {
    background-color: #4A90E2;
    color: #fff;
}

/* Cerrar sesión igual que los demás */
.mi-cuenta-menu ul li:last-child a {
    background: none !important;
    color: #333 !important;
    font-weight: bold;
    text-align: left;
    padding: 12px 12px; /* mismo padding */
    border-radius: 0;
    line-height: 1.5; /* mismo line-height */
    margin: 0; /* sin margen */
}

/* Hover para cerrar sesión */
.mi-cuenta-menu ul li:last-child a:hover {
    background-color: #4A90E2;
    color: #fff;
}

.mi-cuenta-content p {
    text-align: center;
    max-width: 600px; /* opcional: para limitar el ancho y que no quede muy ancho */
    margin: 0 auto; /* centra horizontalmente el párrafo */
    font-size: 1.1rem; /* opcional: tamaño un poco más grande para mejor lectura */
    color: #333; /* opcional: color estándar */
}

/* Formulario */

form.mi-cuenta-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
}

/* Contenedor fila para nombre y apellido */
.mi-cuenta-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.mi-cuenta-form-row > div {
    flex: 1;
}

/* Inputs texto, email y password con margen uniforme */
form.mi-cuenta-form input[type="text"],
form.mi-cuenta-form input[type="email"],
form.mi-cuenta-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px; /* margen uniforme menor */
}

/* Separar título Cambiar contraseña del campo de correo */
.mi-cuenta-content h2 {
    margin-top: 20px; /* Espacio mayor arriba para separar del correo */
    margin-bottom: 20px; /* Espacio abajo para el título */
    text-align: center; /* Centra el texto horizontalmente */
}

/* Mayor separación vertical entre campos de contraseña */
.mi-cuenta-content label[for="current_password"],
.mi-cuenta-content label[for="new_password"],
.mi-cuenta-content label[for="confirm_password"] {
    margin-top: 20px; /* separa etiquetas de campo anterior */
}

form.mi-cuenta-form input[type="password"] {
    margin-bottom: 20px; /* más espacio debajo de cada input de contraseña */
}

/* Inputs de contraseña con padding para botón Mostrar */
.ib-password-input {
    padding-right: 70px; /* espacio para el botón mostrar */
}

/* Contenedor para input y botón Mostrar */
.ib-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Inputs de contraseña y texto con espacio para botón Mostrar */
.ib-input-wrapper input[type="password"],
.ib-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 60px; /* espacio fijo para el botón Mostrar */
    box-sizing: border-box; /* incluir padding en tamaño total */
    height: 45px; /* altura fija para evitar salto */
}

/* Botón Mostrar/ocultar */
.ib-toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 35%; /* vuelve al 50% */
    transform: translateY(-50%);
    cursor: pointer;
    background: none !important;
    border: none !important;
    color: #3B5998 !important;
    font-weight: bold !important;
    font-size: 0.9em;
    padding: 0 4px;
    line-height: normal;
    user-select: none;
    white-space: nowrap;
}

.ib-toggle-password-btn:hover {
    color: #4A90E2 !important;
}



/* Botón enviar */
form.mi-cuenta-form input[type="submit"] {
    padding: 10px 20px;
    background-color: #3B5998; /* Color inicial */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
} 

form.mi-cuenta-form input[type="submit"]:hover {
    background-color: #4A90E2; /* Color al pasar el cursor */
    transform: scale(1.05); /* Efecto grow */
}


.mi-cuenta-content hr {
    border: none;
    height: 1px;
    background-color: transparent;
    margin: 20px 0;
}

/* Botón cerrar sesión */
.mi-cuenta-logout {
    margin-top: 20px;
    display: block;
    text-align: center;
    padding: 10px;
    background: #4A90E2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.mi-cuenta-logout:hover {
    background: #3B5998;
}

/* Menú móvil fijo inferior */
.mi-cuenta-menu-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
}

.mi-cuenta-menu-mobile .menu-icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.mi-cuenta-menu-mobile .menu-icon-btn.active,
.mi-cuenta-menu-mobile .menu-icon-btn:hover {
    color: #3B5998;
}

.mi-cuenta-menu-mobile .logout-btn {
    color: #d9534f;
}

.mi-cuenta-menu-mobile .logout-btn:hover {
    color: #c9302c;
}

.desktop-favorites-content,
.mobile-favorites-content {
    display: none;
}

@media (min-width: 768px) {
    .desktop-favorites-content {
        display: block;
    }
}

@media (max-width: 767px) {
    .mobile-favorites-content {
        display: block;
    }

    .mi-cuenta-wrapper {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .mi-cuenta-content {
        border: none;
        border-radius: 0;
        padding: 10px 0;
    }

    .mi-cuenta-menu-mobile {
        display: flex !important;
    }

    .mi-cuenta-menu {
        display: none !important;
    }

    .mi-cuenta-form-row {
        flex-direction: column;
    }
}

/* Estilos para favoritos móvil */
.favorites-menu-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: flex-start;
    position: relative;
    z-index: 10;
    border-bottom: none !important;
}

.favorites-tab-btn {
    background: #e0e0e0 !important;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    color: #333 !important;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.favorites-tab-btn .fa-regular.fa-bookmark {
    font-size: 1.1rem;
    color: #333 !important;
}

.favorites-tab-btn.active {
    background: #3b5998 !important;
    color: #fff !important;
    font-weight: 700;
    border-color: #3b5998 #3b5998 transparent;
    border-bottom: none;
    position: relative;
    top: 0;
    z-index: 2;
}

.favorites-tab-btn.active .fa-regular.fa-bookmark {
    color: #fff !important;
}

.favorites-tab-btn:hover:not(.active) {
    background: #d4d4d4 !important;
}

.mi-cuenta-content {
    border: 1px solid #ddd;
    border-top: 1px solid #ddd;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    background: #fff;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .mi-cuenta-content {
        border: none;
        padding: 10px 0;
        margin-top: 0;
        position: static;
        z-index: auto;
    }
}

.mi-cuenta-menu-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
}

.mi-cuenta-menu-mobile .menu-icon-btn {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #888888;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 0;
    transition: color 0.3s;
    outline-offset: 2px;
}

.mi-cuenta-menu-mobile .menu-icon-btn.active {
    color: #3B5998;
    border: none;
    background-color: transparent;
}

.mi-cuenta-menu-mobile .menu-icon-btn:hover:not(.active) {
    color: #555555;
}

.mi-cuenta-menu-mobile .logout-btn {
    color: #888888;
    border-radius: 0;
    padding: 5px 10px;
    transition: color 0.3s;
    border: none;
    background-color: transparent;
}

.mi-cuenta-menu-mobile .logout-btn:hover {
    color: #555555;
    border: none;
    background-color: transparent;
}

@media (max-width: 767px) {
    .mi-cuenta-menu-mobile {
        display: flex !important;
    }
.mi-cuenta-wrapper {
    flex-direction: column;
    padding: 10px;
    max-width: 100%;
  }

  .mi-cuenta-menu {
    display: none; /* oculta el menú lateral */
    box-shadow: none !important;
    background: none !important;
    border: none !important;
  }

  .mi-cuenta-content {
    box-shadow: none !important;
    background: none !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
  }
}
